Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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