explain select a.id from a inner join (select b.a_id from b where b.type=1 group by b.a_id) as c on c.a_id = a.id where a.state=0
explain select a.id from a inner join (select b.a_id from b where b.type=1 group by b.a_id) as c on c.a_id = a.id where a.state=0
b使用索引成功Using where; Using index for group-by
a使用索引成功Using where
但是有Using temporary; Using filesort;
求助 临时表没有使用索引,如何优化