Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unique Index or Constraint??

RE: Unique Index or Constraint??

From: Jack C. Applewhite <japplewhite_at_inetprofit.com>
Date: Fri, 01 Jun 2001 09:22:46 -0700
Message-ID: <F001.00317F05.20010601084450@fatcity.com>

Vishak, Terry,

Also, an advantage of a Unique Constraint is that a Foreign Key can reference a Unique Key, but not a Unique Index.

Jack



Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas
www.iNetProfit.com
japplewhite_at_inetprofit.com
(512)327-9068

-----Original Message-----
Sent: Friday, June 01, 2001 10:05 AM
To: Multiple recipients of list ORACLE-L

According to Oracle, they will be de-supporting the unique index in the future. Since the unique constraint creates an index anyway, might as well go
with the unique constraint.

Terry

Vishak wrote:

> Hello Gurus,
>
> I would like to know whether creating an unique-index on a column or a
> unique constraint on a column(during creation of the table) would be fine.
>
> Which option would be better?
>
> TIA
> Regards
> Vishak
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jack C. Applewhite
  INET: japplewhite_at_inetprofit.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Jun 01 2001 - 11:22:46 CDT

Original text of this message

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