Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ebnf show config #17025

Merged
merged 1 commit into from
Apr 11, 2024
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
Loading