<statement id="DeleteAccount" parameterClass="Account"> BEGIN DELETE FROM ORDERS WHERE ACCOUNT_ID = #Id#; DELETE FROM ACCOUNTS WHERE ACCOUNT_ID = #Id#; END; </statement>
1 楼 zfms 2012-03-22
很不错,谢谢,帮我解决了很大问题.
<statement id="DeleteAccount" parameterClass="Account"> BEGIN DELETE FROM ORDERS WHERE ACCOUNT_ID = #Id#; DELETE FROM ACCOUNTS WHERE ACCOUNT_ID = #Id#; END; </statement>