-事物管理
create table account(
id number,
money number
);
--实现转账操作
update account set money = money - 100 where id = 2;
update account set money = money + 100 where id = 1;
--事务提交
commit;
--事务回滚
rollback;
|
原文:http://www.cnblogs.com/haozhengfei/p/6538351.html