注:我用的MS SQL SERVER2008。
6 个解决方案
#1
where xx is null
#2
select * from 数据库名 where NAME is null
显示所有姓名为空的记录
显示所有姓名为空的记录
#3
select * from 表 where 列名 is null
#4
select * from 表 where 列 is null
#5
select AAA from BBB where CCC is null
#6
select * from table where field is null
or
select * from table where file is not null
#1
where xx is null
#2
select * from 数据库名 where NAME is null
显示所有姓名为空的记录
显示所有姓名为空的记录
#3
select * from 表 where 列名 is null
#4
select * from 表 where 列 is null
#5
select AAA from BBB where CCC is null
#6
select * from table where field is null
or
select * from table where file is not null