|
mysql强制使用索引,速度加快10倍。
explain
SELECT dat.*
FROM cdp.excel_upload es force index(ixu_exup_status_dt_tp),web_cdp.listed_cpny_rpt_fin_trace_f dat
where es.excel_id = dat.excel_id and es.status_dt between '2011-10-17 00:48:04' and '2011-10-19 02:06:43' and es.status_tp=11;
|
|