【发布时间】:2012-03-23 19:35:07
【问题描述】:
可能重复:
what is “=null” and “ IS NULL”
Is there any difference between IS NULL and =NULL
有什么区别
where x is null
和
where x = null
为什么后者不起作用?
【问题讨论】:
-
因为任何与NULL的算术比较结果也是NULL,所以你无法从这样的比较中得到任何有意义的结果-dev.mysql.com/doc/refman/5.0/en/working-with-null.html
-
'is null' 也可以作为函数使用。签出:w3schools.com/sql/sql_isnull.asp