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: Rama Shankar <ramashankar.yadav_at_gmail.com>
Date: 16 Mar 2006 01:16:17 -0800
Message-ID: <1142500577.489825.60920@z34g2000cwc.googlegroups.com>


Hi, Morgan
 You are right . we can also create a non unique index and then add primary key using the index.
eg=>
create table em as select * from emp;

create index em_empno_idx on em(empno);

alter table em add (constraint pk_em primary key (empno) using index em_empno_idx);

But I want to know what are the advantages doing this .Is it only used to make the constraint defferable or there is any other advantage also. Received on Thu Mar 16 2006 - 03:16:17 CST

Original text of this message

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