Oracle_事务

-事物管理
 
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;
 
 
select * from account;  
 
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-06-06
  • 2021-07-18
  • 2022-12-23
  • 2021-11-18
  • 2021-06-07
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2021-05-31
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案