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!

Adding columns to existing primary key constraint

user5716448Jun 13 2012 — edited Jun 13 2012
Hi,

We wish to add some columns to the primary key of existing table.

Is this possible without dropping the constraint and recreating?

Other tables reference have fks defined against this table's pk.

Only way at moment can think of is drop constraint on other table
drop pk constraint
add pk contsraint
add dfk contrsint.

Any other ideas?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2012
Added on Jun 13 2012
3 comments
675 views