Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Difference: Uniq. Constraint & Index ?
Robert Klemme wrote:
> On 17.10.2006 03:20, DA Morgan wrote:
>> However I would argue that you should never build a unique index. >> >> Here are just a few of the differences: >> 1. Unique constraints put an entry into user_indexes >> 2. Unique indexes do not create an entry in user_constraints >> 3. You can not defer an index >> 4. You can not disable an index (except FBI) >> 5. Unique indexes have no equivalent to NORELY >> 6. Unique indexes have no equivalent to NOVALIDATE
"Never" is a bit extreme ... but I can't think of a reason to use one.
I've yet to see any value in a unique index that would make me choose it over a unique constraint. If someone can knows of one I'd like to see it and a demo that shows how it is superior.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Tue Oct 17 2006 - 12:46:31 CDT