摘要: 锁分类 从性能上划分 乐观锁 适合读多的场景 悲观锁 适合写多的场景 从操作粒度划分 表锁 一般用作数据迁移、开销小加锁快 手动加表锁 lock table 表名称 read(write), 表名称2 read(write); 查看表上加过的锁 show open tables; 删除表锁 unlo 阅读全文
posted @ 2023-02-18 14:08 朱俊升 阅读(89) 评论(0) 推荐(0)