清空具備外鍵約束的表時報ERROR 1701(42000)的解決

清空具備外鍵約束的表時報ERROR 1701(42000)的解決 ERROR 1701 (42000): Cannot truncate a table referenced in a foreign key constraint 解決方法: 刪除前 SET foreign_key_checks=0; 刪除後 SET foreign_key_checks=1;
相關文章
相關標籤/搜索