当前位置:网站首页>不能比较或排序 text、ntext 和 image 数据类型
不能比较或排序 text、ntext 和 image 数据类型
2022-08-05 06:40:00 【51CTO】
最近在开发一个文件管理系统的时候,遇到一个问题:本来偶在本地的数据库是SQL2008,有一个字段SharedUserId 是nvarchar(max)类型,偶在查询SQL语句中用了...AND SharedUserId
于是,偶把本地的数据库字段类型也改成text,再测试,也报类似错误(偶的SQL2008是英文版的):
后来在网上搜索了一下,原来的查询语句稍微修改下,就可以了:...AND SharedUserId换成...AND DATALENGTH(SharedUserId) > 0 AND SharedUserId IS NOT NULL
边栏推荐
- Source code analysis of Nacos configuration service (full)
- binary search tree problem
- 栈与队列的基本介绍和创建、销毁、出入、计算元素数量、查看元素等功能的c语言实现,以及栈的压入、弹出序列判断,栈结构的链式表示与实现
- 合工大苍穹战队视觉组培训Day9——相机标定
- Flink学习10:使用idea编写WordCount,并打包运行
- 七夕!专属于程序员的浪漫表白
- Promise (3) async/await
- RK3568环境安装
- Shiny02---Shiny异常解决
- After working for 3 years, I recalled the comparison between the past and the present when I first started, and joked about my testing career
猜你喜欢
2022杭电多校六 1006-Maex (树形DP)
文本特征化方法总结
边缘盒子+时序数据库,美的数字化平台 iBUILDING 背后的技术选型
八大排序之堆排序
IO进程线程->进程间的通信->day7
RNote108---显示R程序的运行进度
AI + video technology helps to ensure campus security, how to build a campus intelligent security platform?
Put Cloudflare on the website (take Tencent Cloud as an example)
UDP广播
在小程序中关于js数字精度丢失的解决办法
随机推荐
自媒体人一般会从哪里找素材呢?
Nacos cluster construction
Technical Analysis Mode (7) Playing the Gap
Falsely bamboo brother today and found a localization of API to use tools
Redis进阶
Freeswitch操作基本配置
Redis
MyCat安装
AI+视频技术助力保障校园安全,校园智能安防平台该如何建设?
Technical Analysis Patterns (11) How to Trade Head and Shoulders Patterns
技术分析模式(八)双顶和底
[Tool Configuration] Summary of Common Uses of VSCode
共享内存+inotify机制实现多进程低延迟数据共享
Hong Kong International Jewellery Show and Hong Kong International Diamond, Gem and Pearl Show kick off
Shiny04---DT和进度条在shiny中的应用
2022熔化焊接与热切割操作证考试题及模拟考试
在小程序中关于js数字精度丢失的解决办法
How to avoid online memory leaks
利用将网页项目部署到阿里云上(ngnix)
JS控制只能输入数字并且最多允许小数点两位