现在的位置: 首页 > 综合 > 正文

select for update nowait 与 select for update 区别

2013年03月25日 ⁄ 综合 ⁄ 共 164字 ⁄ 字号 评论关闭
看Oracle 9i&10g编成艺术 p200。

 
 当两个用户同时更新同一条记录是, 使用select for update,后执行者,会被阻塞,而使用select for update  nowait 则会抛出:ORA-00054 resource busy and acquire with NOWAIT specified 异常,告之用户这一行已经锁定。

抱歉!评论已关闭.