begin ,rollback,commit .当然有的人用begin /begin work .推荐用START TRANSACTION 是SQL-99标准启动一个事务。
start transaction;
update from account set money=money-100 where name='a';
update from account set money=money+100 where name='b';
start transaction;
update from account set money=money-100 where name='a';
update from account set money=money+100 where name='b';
commit;
本文转自 netcorner 博客园博客,原文链接:http://www.cnblogs.com/netcorner/p/4209895.html ,如需转载请自行联系原作者