当前位置:网站首页>Cannot compare or sort text, ntext, and image data types
Cannot compare or sort text, ntext, and image data types
2022-08-05 07:11:00 【51CTO】
Recently, when developing a file management system, I encountered a problem: the original local database is SQL2008, and there is a field SharedUserId of nvarchar(max) type, which is occasionally queriedSQL statement used...AND SharedUserId
So, I even changed the local database field type to text, and then tested it, and a similar error was reported (even the SQL2008 is in English):
After searching on the Internet, the original query statement is slightly modified, and it works: ...AND SharedUserId replaced by ...AND DATALENGTH(SharedUserId) > 0 AND SharedUserIdIS NOT NULL
边栏推荐
猜你喜欢
随机推荐
Freeswitch操作基本配置
【JVM调优】Xms和Xmx为什么要保持一致
Shiny04---DT和进度条在shiny中的应用
2022 Fusion Welding and Thermal Cutting Operation Certificate Exam Questions and Mock Exams
对数据类型而言运算符无效。运算符为 add,类型为 text。
合工大苍穹战队视觉组培训Day9——相机标定
Database table insert data
C# FileSystemWatcher
MySql面试题总结
binary search tree problem
360度反馈调查表中的问题示范
利用将网页项目部署到阿里云上(ngnix)
MySQL: JDBC programming
Flink学习11:flink程序并行度
不太会讲爱,其实已经偷偷幸福很久啦----我们的故事
游戏思考19:游戏多维计算相关:点乘、叉乘、点线面距离计算
真实字节跳动测试开发面试题,拿下年薪50万offer。
LaTeX Notes
基于快速行进平方法的水面无人船路径规划
FPGA parsing B code----serial 4









