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: Unique Index Vs. Unique Constraints

Re: Unique Index Vs. Unique Constraints

From: L120bj <l120bj_at_aol.com>
Date: 2000/06/01
Message-ID: <20000601064013.17532.00000147@ng-fo1.aol.com>#1/1

>
>hi there,
>
>If I already created Unique index for the column, is it necessary to
>create a Unique constraint on it to ensure the value is unique?
>
>Thanks.
>ken.

Hi Ken,
  The unique index will ensure that the value is unique. You would only need to create the unique constraint if you wished to set up a foreign key to this table from a 'child' table.
HTH,
  Rob Received on Thu Jun 01 2000 - 00:00:00 CDT

Original text of this message

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