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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Dropping a Primary Key constraint

buggleboy007Apr 16 2018 — edited Apr 18 2018

Hi all,

I am trying to propose a solution for a table which has a column that is PRIMARY KEY(actually it has set of 3 columns that make up the PRIMARY KEY) and the same column is a FOREIGN KEY. This is causing an issue when this column has a NULL value (as a trigger is getting fired and this NULL value is becoming a show stopper)

My proposed solution is to drop the PRIMARY KEY and recreate the PRIMARY KEY with the other existing column. This will take care of the issue (IMO). But before I propose the solution, I would like to know the what could be the impact. One is :

a) DROPPING PRIMARY KEY does not drop the UNIQUE INDEX(https://community.oracle.com/thread/369159)

Any other possible impact experience that one can share?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2018
Added on Apr 16 2018
18 comments
4,485 views