mysql中的空值问题

MySQL的查询如果需要用到空值的情况下,where后面的条件就需要注意了

MySQL中的表示空值的方法:is null 和 is not null

比如:select * from user where id = null -->这就是错误的写法

应该写成:select * from user where id is null

猜你喜欢

转载自www.cnblogs.com/caotao0918/p/10052361.html
今日推荐