MySQL Удалить ограничение иностранного ключа
ALTER TABLE jobs DROP FOREIGN KEY constraint_name
Hiren Reshamwala
ALTER TABLE jobs DROP FOREIGN KEY constraint_name
ALTER TABLE table_name DROP FOREIGN KEY constraint_name
SET FOREIGN_KEY_CHECKS = 0;
drop table if exists customers;
drop table if exists orders;
drop table if exists order_details;
SET FOREIGN_KEY_CHECKS = 1;
ALTER TABLE table_name
DROP FOREIGN KEY constraint_name;
Code language: SQL (Structured Query Language) (sql)