Oracle中查询某字段不为空的SQL语句怎么写

假设表A有id,info两个字段,我要查询这个表里面的所有info不为空的数据应该怎么写SQL?

第1个回答  2017-10-30
select * from 表名 where 某字段 is null;
某字段为空。
select * from 表名 where 某字段 is not null;
某字段不为空。
第2个回答  2012-02-09
select *from A where info in not null
第3个回答  2012-02-09
select * from A where info is not null;
第4个回答  2018-04-25
select * from TableName where a is not null and a !="";
相似回答