weixin_39690401的博客环境说明:MySQL 版本 5.7.27隔离级别:RR锁等待造成查询速度很慢MDL 锁如开启如下事务:Session ASession Block table t write;begin;select * from t where id=1;Session A 持有表 t MDL 写锁。Session B 需要 M.....
weixin_39636411的博客select count(1) from B b inner join A a on a.id = b.personid whereb.code like '32%'这样试试呢######select count(1) from B b inner join A a on a.id = b.personid where b.code in(select code from xxx );...