有2张表的信息都需要 group by  完然后在left join 数据去对比 有没有更好的方式去优化呢? select * from (select a.id from a group by a.id )as tmp left join (select b.id from b group by b.id ) on a.id=b.id  这样的代码 有办法优化吗?
Scorpio_Lee(20982108)  17:35:17
当 A B 表内的数据都比较大的时候刚执行了一下 需要 5秒实在有点慢...