以下为示例代码:
begin tran update 表 set A的钱=A的钱+100 where 姓名='A' update 表 set B的钱=B的钱-100 where 姓名='B' if @@error<>0 rollback else commit
codeDevotee 2017-08-09 10:42 原文
以下为示例代码:
begin tran update 表 set A的钱=A的钱+100 where 姓名='A' update 表 set B的钱=B的钱-100 where 姓名='B' if @@error<>0 rollback else commit
本文来自博客园,作者:科技改变未来☆,转载请注明原文链接:https://www.cnblogs.com/codeDevotee/p/7323966.html
欢迎各位找我代写程序,python、c#、web等都可以,加我请注明博客园