求助,急急急急

guying1992 2016-10-14 04:51:12
sol Service查询某个字段为空的记录可以用 is null ?
和oracle有区别吗
...全文
201 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
卖水果的net 版主 2016-10-14
  • 打赏
  • 举报
回复
引用 3 楼 guying1992 的回复:
[quote=引用 1 楼 wmxcn2000 的回复:]
where col is null or col = ''
哥们,还在吗[/quote] 不懂 sol Service,我还以为是 sql server 呢,贴子在这个版块; 忽略我的回复吧;
㤁孞 2016-10-14
  • 打赏
  • 举报
回复
引用 5 楼 guying1992 的回复:
[quote=引用 4 楼 Mynameisamirror 的回复:] select * from table1 where id is null or id='' 其实是一样的
我现在是想一个查询为空的语句可兼容sol Service和oracle [/quote] 写法都一样的,理论上语句是要分开的,ADO类里区分.
guying1992 2016-10-14
  • 打赏
  • 举报
回复
引用 4 楼 Mynameisamirror 的回复:
select * from table1 where id is null or id='' 其实是一样的
我现在是想一个查询为空的语句可兼容sol Service和oracle
㤁孞 2016-10-14
  • 打赏
  • 举报
回复
select * from table1 where id is null or id='' 其实是一样的
guying1992 2016-10-14
  • 打赏
  • 举报
回复
引用 1 楼 wmxcn2000 的回复:
where col is null or col = ''
哥们,还在吗
guying1992 2016-10-14
  • 打赏
  • 举报
回复
引用 1 楼 wmxcn2000 的回复:
where col is null or col = ''
sol Service的null和空两者不同吧 我现在是想一个查询为空的语句可兼容sol Service和oracle
卖水果的net 版主 2016-10-14
  • 打赏
  • 举报
回复
where col is null or col = ''

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧