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; 

 

相关文章: