尝试了一下,发现不同的地方在于出现表连接的时候
ex: select a.col1 from a, b where a.col1 = b.col2 and ... for udpate 
这个时候锁住了a,b两个表中满足条件的记录,而
select a.col1 from a, b where a.col1 = b.col2 and ... for update of a.col1
仅仅锁住了a表中满足条件的记录

所以for update 和for update of 还是有区别的

 

没有标关联的时候一样。

posted on 2015-12-30 16:50  点滴汪洋  阅读(1175)  评论(0编辑  收藏  举报