1. 程式人生 > >Mybatis一條語句執行多條sql的方法

Mybatis一條語句執行多條sql的方法

begin
delete from ent_anche_ind_capital_info_tmp t2 where t2.cid= #cid#;
delete from ent_anche_ind_party_info_tmp t3 where t3.cid= #cid#;
delete from ent_anche_ind_lic_info_tmp t4 where t4.cid= #cid#;
delete from ent_anche_ind_web_info_tmp t5 where t5.cid= #cid#;
delete from ent_anche_ind_info_tmp t1 where t1.cid= #cid#;