📜  强制删除 mysql 中具有引用的行 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:33.984000             🧑  作者: Mango

代码示例1
SET FOREIGN_KEY_CHECKS=0;
DELETE FROM forum WHERE Owner_Id = 1 ORDER BY nright;
SET FOREIGN_KEY_CHECKS=1;