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: <yong321_at_yahoo.com>
Date: 21 Dec 2005 14:50:46 -0800
Message-ID: <1135205446.000084.43570@g49g2000cwa.googlegroups.com>


I was too fast to press the Post button. A unique constraint on multiple columns behaves differently. It doesn't matter if I use NULL or a null string in this case:
create table test (a varchar2(1), b varchar2(1)); create unique index unq_test on test (a, b); insert into test values ('A', null);
insert into test values ('A', null);

I get unique constraint violated error. Sorry about the previous posting.

Yong Huang Received on Wed Dec 21 2005 - 16:50:46 CST

Original text of this message

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