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刪除。