当前位置:网站首页>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
边栏推荐
- 怎么样避免线上内存泄漏
- 算法拾遗十五补链表相关面试题
- 不能比较或排序 text、ntext 和 image 数据类型
- Rapid Medical's Ultra-Small and Only Adjustable Thromb Retriever Receives FDA Clearance
- PCI Pharma Services Announces Multi-Million Dollar Expansion of UK Manufacturing Facility to Meet Growing Demand for Global High Potency Drug Manufacturing Services to Support Oncology Treatment
- Japan Sanitary Equipment Industry Association: Japan's warm water shower toilet seat shipments reached 100 million sets
- protobuf根据有关联的.proto文件进行编译
- 香港国际珠宝展及香港国际钻石、宝石及珍珠展揭幕
- FPGA解析B码----连载4
- DevExpress中针对指定列进行百分比转换
猜你喜欢
随机推荐
ndk编译so库
Shiny04---Application of DT and progress bar in shiny
LabVIEW中如何实现任意形状的不规则按键
香港国际珠宝展及香港国际钻石、宝石及珍珠展揭幕
基于快速行进平方法的水面无人船路径规划
Why does Mysql fail to create a database
MySQL:JDBC编程
typescript63-索引签名类型
RNote108---Display the running progress of the R program
Shiny02---Shiny exception solution
typescript61-泛型工具类型(pick)
字节面试流程及面试题无私奉献,吐血整理
mysql使用in函数的一个小问题
【JVM调优】Xms和Xmx为什么要保持一致
DNSlog外带数据注入
2022最强版应届生软件测试面试攻略
Summary of Text Characterization Methods
AI+视频技术助力保障校园安全,校园智能安防平台该如何建设?
RK3568环境安装
Flink学习11:flink程序并行度