首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

删除行时分提示0行受影响

2013-06-26 
删除行时候提示0行受影响delete from POP3 where usernamenull我执行这跳语句。。数据库中有username为空的

删除行时候提示0行受影响
delete from POP3 where username=null
我执行这跳语句。。数据库中有username为空的好多行。我想删除。。老是0行受影响。为什么啊?
触发器也没有。
[解决办法]
delete from POP3 where username=null
修改为
delete from POP3 where username is null
[解决办法]
null值是不能直接使用等号进行判断的

热点排行
Bad Request.