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';
commit;
本文轉自 netcorner 部落格園部落格,原文連結:http://www.cnblogs.com/netcorner/p/4209895.html ,如需轉載請自行聯系原作者