-1
我不解這在甲骨文爲什麼Oracle中的case語句不能用於字符串比較?
select case when 'hello' <> '' then 1 else 2 end from dual;
回報2
select case when 'hello' <> 'hello' then 1 else 2 end from dual;
回報2
但是在SQL*Server
此按預期工作。
我不解這在甲骨文爲什麼Oracle中的case語句不能用於字符串比較?
select case when 'hello' <> '' then 1 else 2 end from dual;
回報2
select case when 'hello' <> 'hello' then 1 else 2 end from dual;
回報2
但是在SQL*Server
此按預期工作。
在甲骨文空字符串作爲空 - 所以你比較<> null
將永遠假...
(由igr建議修改)