当前位置:网站首页>Oracle pl/sql these query results cannot be updated. Please include ROWID or use Select For update

Oracle pl/sql these query results cannot be updated. Please include ROWID or use Select For update

2022-06-11 06:59:00 Lone ranger_ Atao

We are in the Oracle Database operation , Sometimes you want to operate some of the data after the query is finished , When we click Edit ( A lock sign ) yes , It will prompt us to make mistakes in the above questions : These query results are not updatable , Please use ROWID perhaps SELECT……FOR UPDATE Get updatable results . According to the error message, we can adopt two solutions :

terms of settlement 1: Write... After the query statement for update, Such as :select * from Table name for update;

terms of settlement 2: Use... In the columns of the query rowid attribute , Such as :select rowID,  Table name .* from Table name ;

in addition , We can also solve the problem through the following methods : Select the table to edit on the left , Right click to edit data , You can edit the data directly , Then you will be SQL See such as terms of settlement 2 Same code .

原网站

版权声明
本文为[Lone ranger_ Atao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020524443689.html