MySQL in查詢優化

開發說他寫了個SQL特別慢,讓看看。 html select * from t_channel where id_ in(select distinct cdbh from sjkk_gcjl where jgsj>'2015-01-02 08:00:00' and jgsj<'2015-01-02 12:00:00'); ...... 30min+ 而後我查詢內部SQL,只須要3s+mysql
相關文章
相關標籤/搜索