Skip to content

Commit

Permalink
ebnf show bindings (#17033) (#17145)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Apr 11, 2024
1 parent fc96654 commit c1c6e15
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions sql-statements/sql-statement-show-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,17 @@ The `SHOW BINDINGS` statement is used to display information about created SQL b

## Synopsis

**ShowStmt:**
```ebnf+diagram
ShowBindingsStmt ::=
"SHOW" ("GLOBAL" | "SESSION")? "BINDINGS" ShowLikeOrWhere?
![ShowStmt](/media/sqlgram/ShowStmt.png)

**ShowTargetFilterable:**

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

**GlobalScope:**

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

**ShowLikeOrWhereOpt**

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

## Syntax description

{{< copyable "sql" >}}

```sql
SHOW [GLOBAL | SESSION] BINDINGS [ShowLikeOrWhereOpt];
```

This statement outputs the execution plan bindings at the GLOBAL or SESSION level. The default scope is SESSION. Currently `SHOW BINDINGS` outputs eight columns, as shown below:

| Column Name | Description |
Expand All @@ -49,8 +36,6 @@ This statement outputs the execution plan bindings at the GLOBAL or SESSION leve

## Examples

{{< copyable "sql" >}}

```sql
mysql> CREATE TABLE t1 (
id INT NOT NULL PRIMARY KEY auto_increment,
Expand Down

0 comments on commit c1c6e15

Please sign in to comment.