Skip to content

Commit

Permalink
Correct SHOW PLACEMENT ebnf
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Apr 8, 2024
1 parent 049c02a commit 511a2fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions sql-statements/sql-statement-show-placement-for.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The statement returns a result set in which the `Scheduling_State` field indicat

```ebnf+diagram
ShowStmt ::=
"PLACEMENT" "FOR" ShowPlacementTarget
"SHOW" "PLACEMENT" "FOR" ShowPlacementTarget
ShowPlacementTarget ::=
DatabaseSym DBName
Expand All @@ -31,8 +31,6 @@ ShowPlacementTarget ::=

## Examples

{{< copyable "sql" >}}

```sql
CREATE PLACEMENT POLICY p1 PRIMARY_REGION="us-east-1" REGIONS="us-east-1,us-west-1" FOLLOWERS=4;
ALTER DATABASE test PLACEMENT POLICY=p1;
Expand Down
4 changes: 1 addition & 3 deletions sql-statements/sql-statement-show-placement-labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ summary: The usage of SHOW PLACEMENT LABELS in TiDB.

```ebnf+diagram
ShowStmt ::=
"PLACEMENT" "LABELS"
"SHOW" "PLACEMENT" "LABELS"
```

## Examples

{{< copyable "sql" >}}

```sql
SHOW PLACEMENT LABELS;
```
Expand Down
4 changes: 1 addition & 3 deletions sql-statements/sql-statement-show-placement.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ The statement returns a result set in which the `Scheduling_State` field indicat

```ebnf+diagram
ShowStmt ::=
"PLACEMENT"
"SHOW" "PLACEMENT"
```

## Examples

{{< copyable "sql" >}}

```sql
CREATE PLACEMENT POLICY p1 PRIMARY_REGION="us-east-1" REGIONS="us-east-1,us-west-1" FOLLOWERS=4;
CREATE TABLE t1 (a INT) PLACEMENT POLICY=p1;
Expand Down

0 comments on commit 511a2fe

Please sign in to comment.