当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
How to avoid online memory leaks
MySQL表操作练习
[instancetype type Objective-C]
《PyTorch深度学习实践》第十课(卷积神经网络CNN)
蓝牙gap协议
开启防火墙iptable规则后,系统网络变慢
软件测试必问面试题(附答案和解析)
访问被拒绝:“microsoft.web.ui.webcontrols”的解决办法
Bluetooth gap protocol
mysql使用in函数的一个小问题
Modeling of the MAYA ship
对数据类型而言运算符无效。运算符为 add,类型为 text。
2022最强版应届生软件测试面试攻略
开源中国活动合作说明书
RNote108---显示R程序的运行进度
IO process thread -> communication between processes -> day7
【Dynamic type detection Objective-C】
Put Cloudflare on the website (take Tencent Cloud as an example)
Rapid Medical's Ultra-Small and Only Adjustable Thromb Retriever Receives FDA Clearance
数据库多表关联插入数据









