您的位置:首页 > 数据库 > MySQL

MySQL中的Null

2015-12-30 14:08 441 查看
空值不一定等于空字符
空置不一定为空

mysql中查询字段为null或者不为null

在mysql中,查询某字段为空时,不可用 = null,

而是 is null,不为空则是 is not null

select * from table where column is null;

select * from table where column is not null;

[b]select * from table where column =''

[/b]

[b]select
* from table where ISNULL(column)


[/b]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: