Oracle在plsql中想要修改数据,有两种方式:

a.使用rowid+点击锁图标,语句为:
select t.*,rowid from T_BIC_PLY_MAIN t;
 
b.使用for update,语句为:
select t.* from T_BIC_PLY_MAIN t for update;
 
b方式不太建议使用,for update会锁定表,如果这个锁定会话没有结束或你忘了进行提交,会影响到他人的修改或使用,尤其当你修改的表与其他多张表有关系时,更容易出现问题。详情请看for update语句的区别笔记

相关文章:

  • 2021-12-17
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2021-06-28
  • 2021-04-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-04-17
  • 2021-08-02
相关资源
相似解决方案