This Oracle tutorial explains how to drop a foreign key in Oracle with syntax and examples.
Once a foreign key has been created, you may find that you wish to drop the foreign key from the table. You can do this with the ALTER TABLE statement in Oracle.
The syntax to drop a foreign key in Oracle/PLSQL is:
If you had created a foreign key as follows:
In this example, we've created a primary key on the supplier table called supplier_pk. It consists of only one field - the supplier_id field. Then we've created a foreign key called fk_supplier on the products table that references the supplier table based on the supplier_id field.
If we then wanted to drop the foreign key called fk_supplier, we could execute the following command: