备份数据,执行脚本。 delete AA_AccountAssociation from AA_AccountAssociation a left join AA_Account b on a.idpreaccountDTO=b.id left join AA_Account c on a.idcurrentaccountDTO=c.id where currentaccountingyear=2014 and preaccountingyear=2013 and b.isEndNode=0 and c.isEndNode=0