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: ORA-00001: unique constraint violated

Re: ORA-00001: unique constraint violated

From: Mohamad SALEH <msaleh_at_orsys.fr>
Date: 2000/05/17
Message-ID: <39230E28.FF72A271@orsys.fr>#1/1

screwbai_at_my-deja.com a écrit :

> I figure out this problem. One of the column had a NULL in it. And NULLs
> are not allowed in a unique index.

Not true as much as Oracle is engaged! I knew it but I have done the following on Oracle 8.1.6

create table essai (a integer, b integer, c char(1)); create unique index uind on essai(a,b);
insert into essai values(null, null, 'a'); insert into essai values (null, null, 'b'); insert into essai values(1, null, 'c');

All of these instructions completed with no problem.

--
Mohamad
Received on Wed May 17 2000 - 00:00:00 CDT

Original text of this message

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