Skip to content

Commit

Permalink
align comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ran <huangran.alex@gmail.com>
  • Loading branch information
ran-huang committed Dec 2, 2022
1 parent f48b210 commit 203f978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql-statements/sql-statement-explain.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ EXPLAIN DELETE FROM t1 WHERE c1=3;
4 rows in set (0.01 sec)
```

To specify the content and format of the output, you can use the `FORMAT = xxx` syntax in the `EXPLAIN` statement. Currently, TiDB supports the following formats:
To specify the content and format of the `EXPLAIN` output, you can use the `FORMAT = xxx` syntax. Currently, TiDB supports the following formats:

| FORMAT | Description |
| ------ | ------ |
| Empty | Same as `row` |
| Not specified | If the format is not specified, `EXPLAIN` uses the default format `row`. |
| `row` | The `EXPLAIN` statement outputs results in a tabular format. See [Understand the Query Execution Plan](/explain-overview.md) for more information. |
| `brief` | The operator IDs in the output of the `EXPLAIN` statement are simplified, compared with those when `FORMAT` is left unspecified. |
| `dot` | The `EXPLAIN` statement outputs DOT execution plans, which can be used to generate PNG files through a `dot` program (in the `graphviz` package). |
Expand Down Expand Up @@ -326,7 +326,7 @@ EXPLAIN FORMAT = "tidb_json" SELECT id FROM t WHERE a = 1;
1 row in set (0.01 sec)
```

In the output, `id`, `estRows`, `task`, `access object`, and `operator info` have the same meaning as in the default format. `subOperators` is an array that stores the sub-nodes. The fields and meanings of the sub-nodes are the same as the parent nodes. If a field is missing, it means that the field is empty.
In the output, `id`, `estRows`, `taskType`, `accessObject`, and `operatorInfo` have the same meaning as in the default format. `subOperators` is an array that stores the sub-nodes. The fields and meanings of the sub-nodes are the same as the parent nodes. If a field is missing, it means that the field is empty.

</div>

Expand Down

0 comments on commit 203f978

Please sign in to comment.