Skip to content

Commit

Permalink
ebnf show config (#17025) (#17142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Apr 11, 2024
1 parent 61c5147 commit 246afb3
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions sql-statements/sql-statement-show-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@ The `SHOW CONFIG` statement is used to show the current configuration of various
## Synopsis

**ShowStmt:**
```ebnf+diagram
ShowConfigStmt ::=
"SHOW" "CONFIG" ShowLikeOrWhere?
![ShowStmt](/media/sqlgram/ShowStmt.png)

**ShowTargetFilterable:**

![ShowTargetFilterable](/media/sqlgram/ShowTargetFilterable.png)
ShowLikeOrWhere ::=
"LIKE" SimpleExpr
| "WHERE" Expression
```

## Examples

Show all configurations:

{{< copyable "sql" >}}

```sql
SHOW CONFIG;
```
Expand All @@ -44,8 +43,6 @@ SHOW CONFIG;

Show the configuration where the `type` is `tidb`:

{{< copyable "sql" >}}

```sql
SHOW CONFIG WHERE type = 'tidb' AND name = 'advertise-address';
```
Expand All @@ -61,8 +58,6 @@ SHOW CONFIG WHERE type = 'tidb' AND name = 'advertise-address';

You can also use the `LIKE` clause to show the configuration where the `type` is `tidb`:

{{< copyable "sql" >}}

```sql
SHOW CONFIG LIKE 'tidb';
```
Expand Down

0 comments on commit 246afb3

Please sign in to comment.