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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Unique and non unique index

Re: Unique and non unique index

From: Martijn Tonies <m.tonies_at_upscene.removethis.com>
Date: Wed, 15 Mar 2006 11:35:21 +0100
Message-ID: <121frfkn7fdecf@corp.supernews.com>

> We can enforce primary key constraint by using both unique
> and non-unique index. I want to know when to use unique index and when
> non unique.

You've got it backwards.

Use -constraints- for business rules enforcements:

- primary key constraints
- unique constraints
- check constraints
- referential constraints

and use indices for performance reasons.

-- 
Martijn Tonies
Database Workbench - development tool for Oracle, and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Received on Wed Mar 15 2006 - 04:35:21 CST

Original text of this message

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