http://hedengcheng.com/?p=771
mysql lock in share mode 和 select for update
2016年09月28日 10:23:32
阅读数:2820
工作需要,接触到以下两个mysql sql语法:
select lock in share mode
select for update
1...
看如下一条sql语句:
# table t (id int, name varchar(20))
delete from t where id = 10;
mysql在执行的过程中,是如何加锁呢?
在看下面这条语句:
select * from t where id = 10;
那这条语句呢?其实这其...