Discuss / SQL / 删除外键约束是不是写错了?

删除外键约束是不是写错了?

Topic source

ALTER TABLE students DROP FOREIGN KEY fk_class_id

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

MySQL是DROP FOREIGN KEY,Oracle和MSSQL可以用DROP CONSTRAINT


  • 1

Reply