Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Preferred method in creating primary key
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;
Now I can drop my constraint without losing my index.
You mentioned that your index was hidden when you dropped or disabled the constraint - it isn't hidden, it is quietly dropped. That's what it 'comes back' in the default tablespace.
Cheers,
Norm.
Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.comReceived on Wed Aug 13 2003 - 06:53:48 CDT
-------------------------------------