how to drop the foreign key constraint in sql code example Example: drop foreign key ALTER TABLE table_name DROP CONSTRAINT fk_name;