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: Test if Data for a Field is UNIQUE

Re: Test if Data for a Field is UNIQUE

From: Mladen Gogala <gogala_at_sbcglobal.net>
Date: Tue, 24 Jan 2006 03:18:05 GMT
Message-Id: <pan.2006.01.24.03.18.04.590537@sbcglobal.net>


On Mon, 23 Jan 2006 20:29:48 -0500, Mark C. Stock wrote:

> are you sure you meant that?
>
> this is possible, but only under the following conditions:
>
> 1) constraint is not enabled or
> 2) constraint is enabled novalidate, and an non-unique index on the PK
> columns already exist prior to enabling the constraint (then the data
> existing prior to enabling the constraint may containt duplicates, but all
> inserts and updates will be validated against the constraint)

This scenario is precisely what I had in mind. Of course, doing data cleanup from the EXCEPTIONS table is always the best option, but you must hate somebody with passion to tell him to browse through 350,000 or so duplicate rows and make business decision about which rows to keep. You can always spice it up with a short deadline. That's called "operating in PHB mode".

-- 
http://www.mgogala.com
Received on Mon Jan 23 2006 - 21:18:05 CST

Original text of this message

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