sql中判断非空不能用等号,因为null在sql中被看作特殊符号,必须使用关键字 is和not select * from A where info is not null
非空:
select id,info from 表名 where info is not null;
空:
select id,info from 表名 where info is null;
sql中判断非空不能用等号,因为null在sql中被看作特殊符号,必须使用关键字 is和not select * from A where info is not null
非空:
select id,info from 表名 where info is not null;
空:
select id,info from 表名 where info is null;