假设一个列定义为:
col varchar2(5)col='X'是true;trim(col)=trim('X')是true;' ',那么如果trim(col)=trim(' ')是false;为什么?
谢谢
发布于 2014-03-10 12:39:31
Oracle不支持像‘’这样的空字符串;Oracle使用null (每当结果应该是空字符串时,实际上就会得到null )。因为
null = null -- <- is null (and not true) 你的公式
trim(col) = trim(' ') -- <- equals to "null = null"为空(也不为真)。
https://stackoverflow.com/questions/22300272
复制相似问题