`
流星剑
  • 浏览: 92351 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

事务的操作

 
阅读更多
set xact_abort on
begin transaction --开始事务
update card set banlance=banlance-800 where id=1
update card set banlance=banlance+800 where id=2
commit transaction --提交事务

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics