优化前:
select t1.id, t1.create_time, t1.account, t2.name from tab1 t1 inner join tab2 t2 on t1.account = t2.bip order by t1.create_time limit 0,10
优化后:
select tamp.*, t2.name from
( select t1.id, t1.create_time, t1.account, t2.name from tab1 t1 order by t1.create_time limit 0,10 ) tamp
inner join tab2 t2 on tamp.account = t2.bip
inner join
left join