我想传递一个空值否则在我的分贝的东西,它似乎没有Where
条款的工作,像这样甲骨文NVL问题
select NVL(column1, '0') column1 from table1
产生这种
0 test1
0 test2
1 test3
但是,当我想补充的where子句,像这样
select NVL(column1, '0') column1 from table1 where column1 <=1
它产生这个
1 test3
但现在,如果我添加以下查询它的工作原理
select NVL(column1, '0') column1
from table1
where NVL(column1, '0') <=1
但它似乎是一个很长的路轮获得价值与Where
条款正确显示
任何想法我做错了什么?
在此先感谢
为什么''0''而不是'0'? –