for update 和 for update nowait 区别
2009-03-10 14:09
369 查看
for update 和 for update nowait的区别是,别的事务要对这个表进行写操作时,是等待一段时间还是马上就被数据库系统拒绝,返回ORA-00054错误而返回.
for update: 当第一个session最后commit或者rollback之后,第二个session中的检索结果就是自动跳出来,并且也把数据锁定住,如果没有for update这种锁定语句的话,就不会造成堵塞.
for update nowait:当你第一个session放开锁定以后,第二个session才能正常运行。当你第二个session语句运行后,数据又被你第二个session语句锁定住了,这个时候只要你第二个session语句后还没有commit,别的session照样不能对数据进行锁定更新等等。
for update: 当第一个session最后commit或者rollback之后,第二个session中的检索结果就是自动跳出来,并且也把数据锁定住,如果没有for update这种锁定语句的话,就不会造成堵塞.
for update nowait:当你第一个session放开锁定以后,第二个session才能正常运行。当你第二个session语句运行后,数据又被你第二个session语句锁定住了,这个时候只要你第二个session语句后还没有commit,别的session照样不能对数据进行锁定更新等等。
相关文章推荐
- oracle select语句中,不加for update和加 for update和for update nowait区别
- for update 和 for update nowait的区别
- for update 和 for update nowait的区别
- 【JAVA】FOR UPDATE 和 FOR UPDATE NOWAIT 区别 (转)
- Oracle 中 for update 和 for update nowait 的区别
- for update和for update nowait的区别和使用
- for update、for update nowait、select t.*,t.rowid from table的区别
- for update 和 for update nowait 的区别
- For update 与For update of 的区别
- for update 和 for update nowait
- select for update nowait 与 select for update 区别
- oracle for update和for update nowait的区别
- oracle for update和for update nowait的区别 - 转
- oracle for update和for update nowait的区别
- select for update nowait 与 select for update 区别 [z]
- 数据库 for update of 和 for update区别。
- select for update nowait 与 select for update 区别
- oracle for update和for update nowait的区别
- oracle for update和for update nowait
- oracle for update和for update nowait(for update wait)的区别