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: create three column unique constraint on existing table

Re: create three column unique constraint on existing table

From: LKBrwn_DBA <member30625_at_dbforums.com>
Date: Mon, 18 Aug 2003 17:50:00 -0400
Message-ID: <3257872.1061243400@dbforums.com>

Yes,

  1. execute the utlexcpt.sql script in $ORACLE_HOME/rdbms/admin/ directory.
  2. Create the constraint:

ALTER TABLE BIG_TABLE ADD CONSTRAINT BIG3_CONSTRAINT UNIQUE (col1, col2, col3)

EXCEPTIONS INTO EXCEPTIONS ..etc...

;

Then all duplicate rows will be recorded in the EXCEPTIONS table.

:cool:

--
Posted via http://dbforums.com
Received on Mon Aug 18 2003 - 16:50:00 CDT

Original text of this message

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