Oracle 字符串不为空条件

Oracle 中,空字符串存入到Oracle中会自动转换为NULL,另外VARCHAR2把空串等同于null处理。

SQL> select 1 from dual where null=null;  没有查到记录  
SQL> select 1 from dual where null='';  没有查到记录  
SQL> select 1 from dual where ''='';  没有查到记录  
SQL> select 1 from dual where null is null; 
原文地址:https://www.cnblogs.com/sallet/p/4303806.html