在PL/SQL DEV里面有把锁一样的按钮,点击它为什么会跳出“these query result are not updateable,include the ROWID to get updateable results

解决方案 »

  1.   

    表示这个状态是查询状态,不是可更新状态。这个锁是你需要编辑数据,(or select * from 表 for update)时使用~~~
      

  2.   

    锁上编辑锁,加上查询他的ROWID就可以打开修改锁修改数据了
    例:
    select t.*,t.rowid from scott.emp t
      

  3.   


    恩,我试了下,的确这样就可以了但是为什么需要查询出ROWID值才能更新呢?这个更新就是UPDATE表里面的数据的吧?
      

  4.   

    也可以 select t.* from scott.emp t for update  二种方式