请教批量删除数据库中某个字段为空的记录的语句?!

99dz31 2005-04-02 11:22:50
批量删除数据库中某个字段为空的记录的语句是什么啊?

请指教哦`!
...全文
277 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaoyuehen 2005-04-03
  • 打赏
  • 举报
回复 1
Delete From TbName Where ColName is Null or ColName = ''
madpolice 2005-04-02
  • 打赏
  • 举报
回复
delete from tb where isnull(字段,'')=''
Aspclass 2005-04-02
  • 打赏
  • 举报
回复
不用这么麻烦。。。

可以用update
hbhbhbhbhb1021 2005-04-02
  • 打赏
  • 举报
回复
DELETE FROM test
WHERE (name IS NULL)
Fufay 2005-04-02
  • 打赏
  • 举报
回复
表:
Delete * From TbName Where ColName = ""
Delete From TbName Where ColName is Null
hbhbhbhbhb1021 2005-04-02
  • 打赏
  • 举报
回复
delete from table where id in (select * from table where 字段 is null)
wangyingdong 2005-04-02
  • 打赏
  • 举报
回复
楼上所说是对的
jyzxpboy 2005-04-02
  • 打赏
  • 举报
回复
delete from table where id in (select * from table where 字段 is null)
look4sword 2005-04-02
  • 打赏
  • 举报
回复
Delete * From TbName Where ColName = ""
Delete From TbName Where ColName is Null

28,405

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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