Skip to Main Content

Oracle Database Discussions

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!

Foreign key constraint without any delete checks?

Håkan ArpforsMay 20 2020 — edited May 27 2020

Is it possible to add a Foreign key (FK) constraint and not have anything to happen upon delete of row affected by the FK?

What I mean is that I would like to disable the ON DELETE clause.

I'm working on an old system where I would like to add FK as information/documentation as a first step.

The next step would be to add checks for correct values, by enabling the constraint.

The latest step would be to add the DELETE clause.

Some logic will not work and must be changed in order to add the ON DELETE clause.

Regards

Håkan

This post has been answered by Jonathan Lewis on May 27 2020
Jump to Answer
Comments
Post Details
Added on May 20 2020
8 comments
1,958 views