order by 優化

前言:在使用order by時,經常出現Using filesort,因此對於此類sql語句需盡力優化,使其儘量使用Using index。 0.準備 #1.創建test表。 drop table if exists test; create table test( id int primary key auto_increment, c1 varchar(10), c2 varchar(10),
相關文章
相關標籤/搜索