Truncate有外键约束的表

SET FOREIGN_KEY_CHECKS=0;
TRUNCATE TABLE  table_name;
SET FOREIGN_KEY_CHECKS=1;
原文地址:https://www.cnblogs.com/krisy/p/2806690.html