2021
02-21
02-21
MySQL InnoDB 锁的相关总结
1. SharedandExclusiveLockssharedlock(译:共享锁)exclusivelock(译:排它锁、独占锁)InnoDB实现了标准的行级锁,其中有两种类型的锁,共享锁(sharedlocks)和排他锁(exclusivelocks)。Ashared(S)lockpermitsthetransactionthatholdsthelocktoreadarow.Anexclusive(X)lockpermitsthetransactionthatholdsthelocktoupdateordeletearow.共享锁允许持有该锁的事务读取一行。排...
继续阅读 >