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: Preferred method in creating primary key

Re: Preferred method in creating primary key

From: Thomas Kellerer <spam_eater_at_gmx.net>
Date: Wed, 13 Aug 2003 14:12:52 +0200
Message-ID: <bhda05$119h6u$1@ID-13919.news.uni-berlin.de>


Norman Dunbar schrieb:

> Hi Jack,
>
> my favourite method is this :
>
> create table blah (.....)
> create index blah_pk on blah (...)
> alter table blah add constraint blah_pk primary key (...) deferrable
> initially immediate;
>

What is the advantage of first specifying the index, and then defining the primary key?

I thought Oracle will create a unique index on the table anyway when I define a primary key...

Thomas Received on Wed Aug 13 2003 - 07:12:52 CDT

Original text of this message

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