Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个相互引用的表 A 和 B。A 被 B 引用,反之亦然。我无法从这两个表中添加或删除任何数据。我也不能从这些表中删除外键约束。请帮忙。谢谢
SET FOREIGN_KEY_CHECKS = 0;
然后随心所欲地改变你的桌子,然后做
SET FOREIGN_KEY_CHECKS = 1;