Oracle 11g:考虑以下两个 CASE 语句
搜索案例
with null_table as (select null as null_set from dual )
select
case
when (null_set is null) then 'NULL INDEED'
else 'NOTNULL?'
end as AM_I_NULL_OR_NOT
from null_table
简单案例
with null_table as (select null as null_set from dual )
select
case null_set
when (null) then 'NULL INDEED'
else 'NOTNULL?'
end as AM_I_NULL_OR_NOT
from null_table
Searched CASE 按预期评估null_set,但是 Simple CASE 似乎没有这样做。
问题:如何对null_set执行简单的 CASE 评估?
为什么 Simple CASE 会这样评估?