SQL DROP FOREIGN KEY
To remove a foreign key from a table, use the ALTER TABLE with DROP CONSTRAINT command.
Syntax
Syntax to remove any foreign key from a table:
ALTER TABLE table_name DROP CONSTRAINT fk_name;
SQL FOREIGN KEY Constraint
The SQL FOREIGN KEY constraint The foreign key constraint ensures that the values in the foreign key column match the values in the primary key column of the referenced table, maintaining referential integrity.