查询语句,字符类型问题,欢迎各位高手来解答,谢谢!!
显示错误如下:
Microsoft OLE DB Provider for SQL Server 错误 '80040e14'
Argument data type ntext is invalid for argument 1 of len function.
语句为
SELECT * FROM service where service.no>(len(tiaoxinma)-len(replace(tiaoxinma,char(13),'')))
tiaoxinma 类型为ntext,必须用ntext。因为tiaoxinma保存的数据比较多,现在要实现的功能就是上面的条件service.no>(len(tiaoxinma)-len(replace(tiaoxinma,char(13),'')))
各位高手不知道怎样才能实现我的目的,谢谢!!!