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:
> CREATE UNIQUE INDEX ON the_table (first_name, last_name);
>
> should do it, I guess.
Or better:
ALTER TABLE the_table ADD CONSTRAINT the_table_uk UNIQUE (first_name, last_name); Received on Wed Jan 26 2005 - 06:57:26 CST
![]() |
![]() |