一、方式一

select * from student for update

student表需要操作人修改完commit之后才可以做其他的操作,否则该表会被锁住


二、方式二
select t.*,t.rowid from student t (推荐,表不会被锁)

pl/sql developer中右击某表,显示的就是该语句,这样做不会将该表锁住。

想修改某几个字段也没有问题select num,name,t.rowid from student t。


在Oracle的pl/sql developer中修改表的2种方法在Oracle的pl/sql developer中修改表的2种方法

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-11-15
  • 2021-06-01
  • 2021-07-24
  • 2021-10-10
  • 2021-04-02
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2021-06-28
  • 2021-08-15
  • 2021-08-04
  • 2021-12-29
  • 2021-12-08
相关资源
相似解决方案