基本上通过索引来解决 . 通常索引键在where , group by , order by 相关的列 一个表只能用一个索引(查询的时候)所以当要执行复杂查询时最好使用联合索引就是 index (a,b,c,d,....)where 需要注意的事,索引是左到右使用的 , 如果是 index(a,b,c) 那么可以1. where a = x and b = y and c = z 2. where a = x order by b,c 3 where a = x group by a,b,cgr