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

Home -> Community -> Usenet -> comp.databases.theory -> Re: UNIQUE and NULL in SQL

Re: UNIQUE and NULL in SQL

From: David Cressey <david_at_dcressey.com>
Date: Mon, 31 Dec 2001 13:11:23 GMT
Message-ID: <%tZX7.5$Nq6.437@petpeeve.ziplink.net>


> What would be the rationale behind UNIQUE if it was any different to
> this? That is, what makes the first NULL different to your second
> NULL?
>

NULL is not equal to NULL. NULL is also not unequal to NULL.

If the test is NULL = NULL, the result is NULL. If the test is NULL <> NULL, the result is NULL.

--
Regards,
    David Cressey
    www.dcressey.com
Received on Mon Dec 31 2001 - 07:11:23 CST

Original text of this message

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