SESSION1:
SQL> create table t2 as select * from emp;
SQL> update t2 set sal=sal+200 where empno=7369;
1 row updated.
SESSION2:
SQL> update t2 set sal=sal+200 where empno=7900;
1 row updated.
此时,session1 和 session2 更新是不同的行,update都正常执行成功,未出现等待,但是都为提交。
SESSION1:
此时session1 更新session2 update过的行,出现等待,因为需要等待session2 提交或者回滚。
SQL>