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!

Drop Primary Key

626082Apr 13 2008 — edited Apr 13 2008
Hi I need a help for removing a PK from a table which has multiple primary keys. I think the code at the below just removes the constraint. I don't want remove the constraint, as I said there multiple primary keys and I want to remove just one of them to make it foreign key. Could you help me please? Thanks
ALTER TABLE tablename
drop CONSTRAINT pk_columnname;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2008
Added on Apr 13 2008
13 comments
15,495 views