Skip to content
Merged
Show file tree
Hide file tree
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
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" ShowLikeOrWhere?
```

## 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" ShowLikeOrWhere?
```

## 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