mysql之truncate外键约束问题:
Cannot truncate a table referenced in a foreign key constraint
解决办法,通过命令行操作:
SET foreign_key_checks = 0;
truncate event_series;
SET foreign_key_checks = 1;
指尖上的记忆mysql之truncate外键约束问题:
Cannot truncate a table referenced in a foreign key constraint
解决办法,通过命令行操作:
SET foreign_key_checks = 0;
truncate event_series;
SET foreign_key_checks = 1;