格式:
表达式 is [not] null
实例:
--查询备注为空的所有数据:
select * from xsb
where 备注 is null;
--查询备注不为空的所有数据:
select * from xsb
where 备注 is not null;
--效果相同
select * from xsb
where not 备注 is null;
格式:
表达式 is [not] null
实例:
--查询备注为空的所有数据:
select * from xsb
where 备注 is null;
--查询备注不为空的所有数据:
select * from xsb
where 备注 is not null;
--效果相同
select * from xsb
where not 备注 is null;