如何删除aaa字段为空的记录?

mustapha 2003-12-23 12:00:06
如果delete from table1 where aaa=null 所有记录都删了,我想只删除aaa字段为空的记录,该如何做?
...全文
58 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
erigido 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null
workhand 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null or aaa = ''
hdslah 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null
victorycyz 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null
wzh1215 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null
DigJim 2003-12-23
  • 打赏
  • 举报
回复
这么多人抢分!!

我就闪了!!
muge 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null or aaa= ''

相当与:

delete from table1 where isNull(aaa,'')=''
hnjava 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa=''
xzx760815 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where isnull(aaa,'')=''
qiaolin53 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where isnull(aaa,'')=''
LoveSQL 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null
dlpseeyou 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null
toptree 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null
gmlxf 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null or aaa= ''

相当与:

delete from table1 where isNull(aaa,'')=''
hglhyy 2003-12-23
  • 打赏
  • 举报
回复
delete from table1 where aaa is null or aaa= ''

34,872

社区成员

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

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