sql查询字段是否为空

sql 查询某字段为空

select * from 表名 where 字段名 is null

 

sql 查询某字段不为空

select * from 表名 where 字段名 is not null

 

sql查询字段1为空且字段2不为空的数据

select * from 表名 where 字段名1 is null and 字段名2 is not null

posted @ 2018-09-21 18:13  Operater  阅读(28004)  评论(0编辑  收藏  举报