This topic created in 3509 days ago, the information mentioned may be changed or developed.
3 replies • 2017-04-12 16:00:07 +08:00
 |
|
google 来的: InnoDB 行锁是通过给索引上的索引项加锁来实现的
|
 |
|
答案不唯一,看有没有主键,有没有索引,查询条件,锁的位置也不一样。
|
 |
|
首先是库锁、表锁和行锁,如果行上有索引,还会在索引上加锁;访问方式不同,还分为共享锁和排它锁_(:з」∠)_
|