标签:
(1)查询某个字段不为空的数据
select * from tb_Grade where GradeName is not null 或 select * from tb_Grade where LEN(GradeName)>0
或
select * from tb_Grade where ISNULL(GradeName,‘1‘)!=‘1‘ 或 select * from tb_Grade where not GradeName is null
(2)检测null值
select * from tb_Grade where GradeName is null
标签:
原文地址:http://www.cnblogs.com/lanhaipeng/p/4340664.html