为什么delete不能删除数据

litom 2004-07-13 10:22:26
我在class表格里有三个字符段,其中第三个为空,分别是class1 class2 class3
我用delete from class where class1='1' and class2='2' and class=''
不能删除,用什么办法能删除,但必须是三个条件都满足的才能删除
...全文
273 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
litom 2004-07-23
  • 打赏
  • 举报
回复
我已经结了帖子怎么没有看到
肥仔胧 2004-07-14
  • 打赏
  • 举报
回复
delete from class where class1='1' and class2='2' and class is null
internetcsdn 2004-07-13
  • 打赏
  • 举报
回复
但这个要保证class为null才好啊.
internetcsdn 2004-07-13
  • 打赏
  • 举报
回复
delete from class where class1='1' and class2='2' and class is null
风中的猴尾巴 2004-07-13
  • 打赏
  • 举报
回复
楼上的
zheninchangjiang 2004-07-13
  • 打赏
  • 举报
回复
delete from class where class1='1' and class2='2' and isnull(class,'')=''

34,838

社区成员

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

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