select_type:
Data read operation type of operation, type of query, the query is mainly used to distinguish between normal, combined query, the query complexity subqueries
Mainly the following categories:
-
SIMPLE: simple select query, the query does not contain subqueries or UNION
-
PRIMARY: If the query contains any complex sub-section, the outermost query were marked
-
SUBQUERY: contains a subquery in the SELECT list or WHERE
-
DERIVED: FROM subquery contained in the list is marked DERIVED (derivative) MYSQL recursively execute these sub-queries, the results in a temporary table
-
UNION: If after the second SELECT appears UNION, were labeled UNION UNION if included in the FROM clause of a query, the outer layer is labeled SELECT: DERIVED
-
UNION RESULT: get results from UNION SELECT table