[Err] 1701 - Cannot truncate a table referenced in a foreign key constraint

1、SET FOREIGN_KEY_CHECKS=0;

2、DELETE FROM ACT_RE_DEPLOYMENT where 1=1;

    或者

truncate table ACT_RE_DEPLOYMENT ;

3、SET FOREIGN_KEY_CHECKS=1;

posted @ 2019-05-22 09:30  小An  阅读(941)  评论(0编辑  收藏  举报