查询记录为空的条件怎么写

iwkyh 2003-11-14 08:07:10
select * from t1 where dono='' 或‘null’不能得到想要的结果,就怎么写,才得查找该字段为空的值,dono为 char 15
...全文
120 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
orcale 2003-11-14
  • 打赏
  • 举报
回复
isnull(dono,'')=''就可以了
txlicenhe 2003-11-14
  • 打赏
  • 举报
回复
select * from t1 where IsNull(dono,'') = ''
txlicenhe 2003-11-14
  • 打赏
  • 举报
回复
select * from t1 where dono is null
welyngj 2003-11-14
  • 打赏
  • 举报
回复
select * from t1 where dono is null

34,588

社区成员

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

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