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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Unique constraint and NULL values

Re: Unique constraint and NULL values

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Thu, 21 Oct 2004 18:54:29 -0700
Message-ID: <1098410016.886726@yasure>


Frank Piron wrote:

  > Yes, but it's a matter of convention because "NULL <> NULL" evaluates
> to null and thus is also not true. So two null values should never
> be considered different.
>

>> ++ mcs

Two nulls should never be evaluated ... there is nothing to consider. So considering them the same or different is irrelevant.

CREATE TABLE t (
col1 NUMBER(1),
col2 VARCHAR2(1),
col3 DATE);

INSERT INTO t (col1) VALUES (1);
COMMIT; What sense would it make to compare col2 and col3? Would you consider them the same?

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Thu Oct 21 2004 - 20:54:29 CDT

Original text of this message

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