dbTalk Databases Forums  

modify primary key

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss modify primary key in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Prasath
 
Posts: n/a

Default modify primary key - 10-31-2006 , 11:45 AM






How do I add a existing column to a composite key in an index organized
table on Oracle 9i?

create table mytable (
mycol1 number,
mycol2 number.
mycol3 number
constraint myconstraint primary key(mycol1, mycol2)
) organization index;

now i need to add mycol3 to the primary key.


Reply With Quote
  #2  
Old   
purush
 
Posts: n/a

Default Re: modify primary key - 11-07-2006 , 05:31 AM







Prasath wrote:
Quote:
How do I add a existing column to a composite key in an index organized
table on Oracle 9i?

create table mytable (
mycol1 number,
mycol2 number.
mycol3 number
constraint myconstraint primary key(mycol1, mycol2)
) organization index;

now i need to add mycol3 to the primary key.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.