当创建基于多个表的游标for update 时,可以使用for update of
for update of 会锁定数据库表中凡是包含活跃数据集中成员的数据行。
也就是说,使用这种方式可以指定希望锁定的数据库表。
如果使用for update of 子句,提交commit 语句之前 ,不能从游标中检索数据行。
当创建基于多个表的游标for update 时,可以使用for update of
for update of 会锁定数据库表中凡是包含活跃数据集中成员的数据行。
也就是说,使用这种方式可以指定希望锁定的数据库表。
如果使用for update of 子句,提交commit 语句之前 ,不能从游标中检索数据行。
转载于:https://www.cnblogs.com/zhangningawp/archive/2010/12/22/1913357.html