Skip to content

Commit

Permalink
ebnf: show builtins, show engines, show plugins, and shutdown (#17073) (
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Apr 18, 2024
1 parent 7165f5b commit 2b0a272
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 28 deletions.
9 changes: 4 additions & 5 deletions sql-statements/sql-statement-show-builtins.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ summary: TiDB 数据库中 SHOW BUILTINS 的使用概况。

## 语法图

**ShowBuiltinsStmt:**

![ShowBuiltinsStmt](/media/sqlgram/ShowBuiltinsStmt.png)
```ebnf+diagram
ShowBuiltinsStmt ::=
"SHOW" "BUILTINS"
```

## 示例

{{< copyable "sql" >}}

```sql
SHOW BUILTINS;
```
Expand Down
14 changes: 7 additions & 7 deletions sql-statements/sql-statement-show-engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ summary: TiDB 数据库中 SHOW ENGINES 的使用概况。

## 语法图

**ShowEnginesStmt:**

![ShowEnginesStmt](/media/sqlgram/ShowEnginesStmt.png)

```sql
SHOW ENGINES;
```enbf+diagram
ShowEnginesStmt ::=
"SHOW" "ENGINES" ShowLikeOrWhere?
ShowLikeOrWhere ::=
"LIKE" SimpleExpr
| "WHERE" Expression
```

## 示例
Expand All @@ -36,4 +36,4 @@ SHOW ENGINES;

## MySQL 兼容性

* `SHOW ENGINES` 语句始终只返回 InnoDB 作为其支持的引擎。但 TiDB 内部通常使用 TiKV 作为存储引擎。
* `SHOW ENGINES` 语句始终只返回 InnoDB 作为其支持的引擎。但 TiDB 内部通常使用 [TiKV](/tikv-overview.md) 作为存储引擎。
19 changes: 8 additions & 11 deletions sql-statements/sql-statement-show-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,13 @@ summary: TiDB 数据库中 SHOW PLUGINS 的使用概况。

## 语法图

**ShowStmt:**

![ShowStmt](/media/sqlgram/ShowStmt.png)

**ShowTargetFilterable:**

![ShowTargetFilterable](/media/sqlgram/ShowTargetFilterable.png)
```ebnf+diagram
ShowPluginsStmt ::=
"SHOW" "PLUGINS" ShowLikeOrWhere?
```

## 示例

{{< copyable "sql" >}}

```sql
SHOW PLUGINS;
```
Expand All @@ -36,8 +31,6 @@ SHOW PLUGINS;

`SHOW PLUGINS` 也支持模糊匹配:

{{< copyable "sql" >}}

```sql
SHOW PLUGINS LIKE 'a%';
```
Expand All @@ -54,3 +47,7 @@ SHOW PLUGINS LIKE 'a%';
## MySQL 兼容性

`SHOW PLUGINS` 语句与 MySQL 完全兼容。如发现任何兼容性差异,请尝试 [TiDB 支持资源](/support.md)

## 扩展阅读

- [`ADMIN PLUGINS`](/sql-statements/sql-statement-admin.md#admin-plugin-语句)
9 changes: 4 additions & 5 deletions sql-statements/sql-statement-shutdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ summary: TiDB 数据库中 SHUTDOWN 的使用概况。

## 语法图

**Statement:**

![Statement](/media/sqlgram/ShutdownStmt.png)
```ebnf+diagram
ShutdownStmt ::=
"SHUTDOWN"
```

## 示例

{{< copyable "sql" >}}

```sql
SHUTDOWN;
```
Expand Down

0 comments on commit 2b0a272

Please sign in to comment.