读书人

exists中加入with ur为什么报错呢,该如

发布时间: 2012-02-25 10:01:49 作者: rapoo

exists中加入with ur为什么报错呢
if exists(select 1 from a where ... with ur)then
....
end if;

红字部分报错,为什么呢

[解决办法]
with UR 可能只能加在整个语句的最后,它不是为一个 SQL 子查询增加的说明而是整个执行的过程。
因为 with UR 描述的事务隔离作用于整个连接,至于作用某个表的 select ... for update 不清楚怎么表达。

读书人网 >IBM DB2

热点推荐