Skip to content

Commit

Permalink
sql-statement-explain-analyze: add note for explain analyze with DML (#…
Browse files Browse the repository at this point in the history
…4059)

* sql-statement-explain-analyze: add note for explain analyze with DML

* Update sql-statements/sql-statement-explain-analyze.md

Co-authored-by: TomShawn <[email protected]>

Co-authored-by: TomShawn <[email protected]>
Co-authored-by: ti-srebot <[email protected]>
  • Loading branch information
3 people authored Jul 28, 2020
1 parent c9e4bcd commit 60ddb9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sql-statements/sql-statement-explain-analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ aliases: ['/docs-cn/dev/reference/sql/statements/explain-analyze/']

`EXPLAIN ANALYZE` 语句的工作方式类似于 `EXPLAIN`,主要区别在于前者实际上会执行语句。这样可以将查询计划中的估计值与执行时所遇到的实际值进行比较。如果估计值与实际值显著不同,那么应考虑在受影响的表上运行 `ANALYZE TABLE`

> **注意:**
>
> 在使用 `EXPLAIN ANALYZE` 执行 DML 语句时,数据的修改操作会被正常执行。但目前 DML 语句还无法展示执行计划。
## 语法图

**ExplainSym:**
Expand Down

0 comments on commit 60ddb9e

Please sign in to comment.