Skip to content

Commit

Permalink
ebnf show config (#17025)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Apr 11, 2024
1 parent d5aa3cd commit fd0b82d
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 @@ -14,20 +14,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 @@ -45,8 +44,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 @@ -62,8 +59,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 fd0b82d

Please sign in to comment.