为排序使用索引 KEY a_b_c (a,b,c) order by 能使用索引最左前缀 -order by a -order by a,b -order by a,b,c -order by a desc,b desc,c desc 如果where使用索引的最左前缀定义为常量,则order by能使用索引 -where a=const order by b,c -where a=const and b=const order by c -where a=const order by b,c -…