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

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




一期项目阶段针对上述问题我看了很多方法,最后发现解决方法很简单,直接在查询的sql语句后面加上for update 然后执行语句,那把小锁就能打开了,还能直接点后面的...直接往数据库里面插入数据,更新数据库中的数据。

具体过程如下:
1.首先运行没加for update的语句,这会儿要出问题了

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

2.运行加了for update语句,

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

3.直接修改数据库中数据

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

4.最后一定要记得提交保存修改后的数据,commit

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

以上是我在学习中遇到的问题,希望可以帮到你们