id

select识别符,是select的查询序号

select_type

simple

简单的select,不使用union或子查询

primary

最外面的select

union

union中第二个或者后面的select语句

dependent union

union中的第二个或后面的select语句,取决于外面的查询

union result

union的结果

subquery

子查询的第一个select

dependent subquery

子查询中的第一个select,取决于外面的查询

derived

导出表的select(from子句的子查询)

table

查询SQL过程中关联的表名称

type

连接类型,以下列出的类型是从最佳类型到最坏类型

system

表仅有一行。是const类型的特例。

const

表最多有一个匹配行,它将在查询开始时被读取,因为仅有一行,在这行的列值可被优化器剩余部分认为是常数。const表很快,因为它们只读取一次。

eq_ref

ref

ref_or_null

index_merge

unique_subquery

index_subquery

range

index

all

key

key_len

ref

rows

filtered

extra

distinct

not exists

range checked for each record

using filesort

using index

using temporary

using where

using sort_union

using index for group by

image.png