(转)Oracle中判断某字段不为空及为空的SQL语句

好比html insert into table a (a1,b1)values("a1",''); 对于这种状况,由于表里存的是'',实际上是没有内容的,要查询这个字段,不能直接使用sql select * from a where b1=''; select * from a where b1 <> null; sql中判断非空不能用等号,由于null在sql中被看做特殊符号,必须使用关键字
相关文章
相关标签/搜索