看懂mysql执行计划--官方文档
原文地址:https://dev.mysql.com/doc/refman/5.7/en/explain-output.html Thestatement provides information about the execution plan for astatement. returns a row of information for each table used in thestatement. It lists the tables in the output in the order that MySQL would read them while processing the statement. MySQL resolves all joins using a nested-loop join method. This means that MySQL reads a row from the first table,and then finds a matching row in the second table,the third table,and so on. When all tables are processed,MySQL outputs the selected columns and backtracks through the table list until a table is found for which there are more matching rows. The next row is read from this table and the process continues with the next table. Before MySQL 5.7.3,when the You cannot use the EXPLAIN Output ColumnsThis section describes the output columns produced by. Later sections provide additional information about theandcolumns. Each output row fromprovides information about one table. Each row contains the values summarized in,and described in more detail following the table. Column names are shown in the table's first column; the second column provides the equivalent property name shown in the output when
|
| |
<div class="admon-title">Note
JSON properties which areare not displayed in JSON-formatted
output.
(JSON name:)
Theidentifier. This is the sequential number of thewithin the query. The value can beif the row refers to the union result of other rows. In this case,thecolumn shows a value likeM
,N
>
to indicate that the row refers to the union of the rows withvalues ofM
andN
.
(JSON name: none)
The type of,which can be any of those shown in the following table. A JSON-formattedexposes thetype as a property of a,unless it isor. The JSON names (where applicable) are also shown in the table.
Value
</tr>
<tr>
<td scope="row"><code class="literal">PRIMARY</td>
<td>None</td>
<td>Outermost<a class="link" title="14.2.9SELECT Syntax" href="https://dev.mysql.com/doc/refman/5.7/en/select.html"><code class="literal">SELECT
</td>
</tr>
<tr>
<td scope="row"><a class="link" title="14.2.9.3UNION Syntax" href="https://dev.mysql.com/doc/refman/5.7/en/union.html"><code class="literal">UNION</td>
<td>None</td>
<td>Second or later<a class="link" title="14.2.9SELECT Syntax" href="https://dev.mysql.com/doc/refman/5.7/en/select.html"><code class="literal">SELECTstatement in a<a class="link" title="14.2.9.3UNION Syntax" href="https://dev.mysql.com/doc/refman/5.7/en/union.html"><code class="literal">UNION
</td>
</tr>
<tr>
<td scope="row"><code class="literal">DEPENDENT UNION</td>
<td>
<code class="literal">dependent(<code class="literal">true)</td>
<td>Second or later<a class="link" title="14.2.9SELECT Syntax" href="https://dev.mysql.com/doc/refman/5.7/en/select.html"><code class="literal">SELECTstatement in a<a class="link" title="14.2.9.3UNION Syntax" href="https://dev.mysql.com/doc/refman/5.7/en/union.html"><code class="literal">UNION,dependent on outer query</td>
</tr>
<tr>
<td scope="row"><code class="literal">UNION RESULT</td>
<td><code class="literal">union_result</td>
<td>Result of a<a class="link" title="14.2.9.3UNION Syntax" href="https://dev.mysql.com/doc/refman/5.7/en/union.html"><code class="literal">UNION.</td>
(编辑:台州站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
相关内容
- mysql – 选择datetime大于指定日期的记录
- 在MySQL InnoDB中存储大于max_allowed_packet的BLOB的最佳方
- 在Mac OS X 10.8.3上编辑my.cnf后无法重新启动MySQL
- 将PHP PDO查询编写为`dbName` .tableName`而不是`tableName
- mysql – 在phpMyAdmin中哈希
- java – JDBC4Connection中的内存泄漏
- php – 在yii2中使用限制范围?
- MySQL / PHP错误:[2002]通常只允许使用每个套接字地址(协议
- c# – 在Windows 10更新1803之后,我的程序在从网络共享运行
- PHP中的ip2long()是否等于MySQL中的INET_ATON()函数?