Re: Drop constraint instead of drop foreign key
Posted by: Peter Brawley
Date: May 17, 2018 09:55AM

The syntax is counterintuitive, to put it mildly ...

alter table table_name drop foreign key foreign_key_constraint_name

so the code will first need to get the constraint name from a ddl query.

Options: ReplyQuote


Subject
Written By
Posted
Re: Drop constraint instead of drop foreign key
May 17, 2018 09:55AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.