Oracle中在pl/sql developer修改表的兩種方式

字號:


    一、方式一
    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。