行级锁

set autocommit=false
select * from tableName where id=9 for update;
commit;

行级锁失效情况:扫描不确定的范围,模糊匹配

发布了196 篇原创文章 · 获赞 5 · 访问量 3495

猜你喜欢

转载自blog.csdn.net/weixin_45010894/article/details/103649582