Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: create three column unique constraint on existing table
Yes,
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.comReceived on Mon Aug 18 2003 - 16:50:00 CDT