在mysql上建立索引,使用explain查询优化显示语句优化时,索引优化顺序如下:
ystem > const > eq_ref > ref > fulltext > ref_or_null > index_merge > unique_subquery > index_subquery > range > index > ALL
range是联合索引,ref是引用单一的索引在mysql上建立索引,使用explain查询优化显示语句优化时,索引优化顺序如下:
ystem > const > eq_ref > ref > fulltext > ref_or_null > index_merge > unique_subquery > index_subquery > range > index > ALL
range是联合索引,ref是引用单一的索引