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
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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。