mysql的子查询、内连接/外连接、笛卡尔积

——纪念一次mysql子查询打满CPU... sql原文大致如下:     select * from A where id in (select B.a from B where B.b in (select C.a from C where C.b = ?))     涉及到的查询字段都有索引,但是由于mysql对子查询的优化做的不好,查询引擎对于子查询很容易选错合适的索引,导致在线上实际跑的
相关文章
相关标签/搜索