select * from table where tablecode = '001' for update;--如果执行这条语句,执行Edit Date时,报错"These query results are not updateable,Include the ROWID to get updateable results."要加RowID,修改sql如下:
select c.*,c.rowid from table c where tablecode = '001' for update;
PL/SQL dev工具 使用for update-->Edit Date 时出错"These query results are not updateable,Include the ROWID to get updateable results."
最新推荐文章于 2023-03-23 09:56:37 发布
本文介绍了一种在SQL中使用FOR UPDATE子句时确保记录锁定的方法。当尝试更新查询结果失败时,通过添加ROWID可以成功获取可更新的结果集。

1704

被折叠的 条评论
为什么被折叠?



