MySQL中InnoDB引擎的行锁是怎么实现的 用户7148667373592 2021-01-05 137 阅读1分钟 基于索引实现行锁,没用到索引,将使用表锁 例如select * from tab_with_index where id = 1 for update; id为主键,将用到行锁