简体   繁体   中英

Oracle not evaluating nvl as expected

This query returns rows where colA is null:

select * from viewA where colA is null;

But this query does not -

select * from viewA where nvl(colA, 'X') = 'X';

Any idea why the second query is not returning any results?

从viewA选择*其中nvl(colA,'null')='null';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM