1. 表锁(table lock)
alter table 使用表锁
2. 行锁 (row locks)
死锁
InnoDB 处理死锁的方法是回滚拥有最少排他行级锁的事务
mysql 锁
原文:https://www.cnblogs.com/newlangwen/p/11781450.html