1.DELETE FROM `act_hi_detail` WHERE 1=1;
2.DELETE FROM `act_hi_comment` WHERE 1=1;
3.DELETE FROM `act_hi_identitylink` WHERE 1=1;
4.DELETE FROM `act_hi_procinst` WHERE 1=1;
5.DELETE FROM `act_hi_varinst` WHERE 1=1;
6.DELETE FROM `act_hi_taskinst` WHERE 1=1;
7.DELETE FROM `act_hi_actinst` WHERE 1=1;
8.DELETE FROM `act_ru_identitylink` WHERE 1=1;
9.DELETE FROM `act_ru_task` WHERE 1=1;
10.DELETE FROM `act_ru_execution` WHERE 1=1;
11.DELETE FROM `act_re_procdef` WHERE 1=1;
12.DELETE FROM `act_ge_bytearray` WHERE 1=1;
13.DELETE FROM `act_re_deployment` WHERE 1=1;
使用了activiti工作流之后,发现要清理数据,真是异常的复杂,因为表结构中带有各种外键关联,所以想删除还不是一般的事,总结了一下删表顺序,希望大家能够采纳和收藏!