Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: NULLs

Re: NULLs

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Tue, 20 Dec 2005 22:51:01 +0100
Message-ID: <l3vgq1hoks95sbihjrts7t4cihnb5ugmj6@4ax.com>


On Tue, 20 Dec 2005 21:33:34 +0000, Andrew Clark <lark047_at_hotmail.com> wrote:

>Hello,
>
>I have an application whose database was recently upgraded from 7 to 9i. In
>a bit of code, columns are compared that may both be null. In Oracle 7,
>will two columns compare equal if they are both NULL? In 9i it seems that
>they do not and I have to change it to NVL(column1) = NVL(column2).
>
>Thanks,
>Andrew

the sql language has three valued logic. An expression can result in true, false and null.
If you compare NULL to NULL the result is NULL, the test will fall through.
This has been the case in any version of Oracle.

--
Sybrand Bakker, Senior Oracle DBA
Received on Tue Dec 20 2005 - 15:51:01 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US