Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1956

why UPDATE requires share lock(S) for table joined (3 replies)

$
0
0
for example
update t inner join lktest on lktest.c3=t.x set t.y=t.y where lktest.c3=2;

in this case , mysql always places share lock on the rows(c3=2) of lktest table no matter what transaction level it is


I am wondering why the S is needed , why mysql doesn't take advantage of MVCC to avoid lock on lktest ?

many thanks .

Viewing all articles
Browse latest Browse all 1956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>