Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Difference: Uniq. Constraint & Index ?
On 17.10.2006 19:46, DA Morgan wrote:
> Robert Klemme wrote:
> "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.
The basis for my question was that I've frequently read the rule of thumb "if it is a business constraint, use a DB constraint for enforcement - otherwise use an index". This seems a bit conflicting with your general preference of constraints. Or do you think this rule of thumb to be wrong?
Kind regards
robert Received on Wed Oct 18 2006 - 03:46:36 CDT