4.type这列很重要,显示了连接使用了哪种类别,有无使用索引.从最好到最差的连接类型为const.eq_reg.ref.range.indexhe和ALL (1).system这是const联接类型的一个特例.表仅有一行满足条件.如下(t3表上的id是 primary key)mysql> explain select * from (select * from t3 where id=3952602) a ;+----+-------------+------------+--------+…