码迷,mamicode.com
首页 > 数据库 > 详细

oracle 不能更新 PL/SQL 点击“edit data”报“ these query results are not updateable”

时间:2014-08-27 14:25:17      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:for   ar   数据   div   代码   sp   ad   c   sql   

你可以选择在查询语句的最后加上 for update,就可以打开编辑锁,直接修改数据。

而在默认查询下,点击Edit data,会报错:The query results are not updateable.

SQL代码示例

select * from table_name for update; (table_name为要编辑的表)  

oracle 不能更新 PL/SQL 点击“edit data”报“ these query results are not updateable”

标签:for   ar   数据   div   代码   sp   ad   c   sql   

原文地址:http://www.cnblogs.com/yangxia-test/p/3939218.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!