【发布时间】:2017-06-15 18:36:38
【问题描述】:
我必须对杂乱无章的数据库进行一些查询。某些列填充有null 或空字符串。我可以这样查询:
select * from a where b is not null and b <> '';
但是这种情况有捷径吗? (匹配每个“非空”值)类似:
select * from a where b is filled;
【问题讨论】:
-
不是重复的。另一个问题是
null or empty,而这个问题是not null and not empty