In the MySQL online documentation you can find the explanation for all the aspects in the explanation EXPLAIN
(English) .
derivedN
Regarding your particular question, we can read here < sup> (English) :
The name of the table to which the row of output refers. This can also be one of the following values:
<unionM,N>
: The row refers to the union of the rows with id values of M and N.
<derivedN>
: The row refers to the derived table for the row with an id value of N. A derived table may result, for example, from a subquery in the FROM clause.
What translated:
The name of the table to which the output line refers. This can also be one of the following values:
<unionM,N>
: The line refers to joining the rows with ID values of M and N.
<derivedN>
: The row refers to the derived table result for the row with an ID value of N. The derived table can result, for example, from a subquery in the FROM clause.
Your current result derived2
indicates that the row results from your derived table shop_categoria
for ID # 2.
rows
The second part of your question, we can read here < sup> (English) :
The rows column indicates the number of rows MySQL believes it should examine to execute the query.
What translated:
The rows column indicates the number of rows that MySQL thinks it should examine to execute the query.
In your case, MySQL thinks you should look at 23248 lines to get the result.