Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Change a composite primary key

user546710Feb 27 2007 — edited Feb 28 2007
Hi all,

I am having table like this

Create table Request
( x number, y varchar2(20), a number, b varchar2(3),
Constraint pk_Request PRIMARY KEY (x, y,a) )

Now, i want to
1. change the compoiste primary key to only x and y (First having 3 fields, now
only two fields)
2. If i want to add one more field (i.e. composite PK contains x,y,a,b)

Thanks in advance,
Pal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2007
Added on Feb 27 2007
13 comments
1,256 views