Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to create a uniqueness constraint based on two fields?
Thomas Kellerer wrote:
> On 26.01.2005 13:25 Ramon wrote: > >
> > > CREATE UNIQUE INDEX ON the_table (first_name, last_name); > > should do it, I guess. > > Thomas
While your answer is technically correct there is almost not good reason for ever creating a unique index in Oracle. Unique indexes, unlike unique constraints are not as well documented in the data dictionary and can't be deferred.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace 'x' with 'u' to respond)Received on Wed Jan 26 2005 - 12:33:31 CST