Ibatis -- 一次执行多条SQL

 

<statement id="DeleteAccount" parameterClass="Account">  
    BEGIN DELETE FROM ORDERS WHERE ACCOUNT_ID = #Id#;  
    DELETE FROM ACCOUNTS WHERE ACCOUNT_ID = #Id#; END;  
 </statement> 

 

posted @ 2015-05-07 11:14  243573295  阅读(1039)  评论(0编辑  收藏  举报