赞
踩
set optimizer_switch='mrr=on,mrr_cost_based=off,batched_key_access=on';
create temporary table temp_t(id int primary key, a int, b int, index(b))engine=innodb;
insert into temp_t select * from t2 where b>=1 and b<=2000;
select * from t1 join temp_t on (t1.b=temp_t.b);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。