SHOW PLACEMENT LABELS

SHOW PLACEMENT LABELS is used to summarize the labels and values that are available for Placement Rules.

SHOW PLACEMENT LABELS - 图1

Note

This feature is not available on TiDB Serverless clusters.

Synopsis

ShowStmt

SHOW PLACEMENT LABELS - 图2

  1. ShowStmt ::=
  2. "SHOW" "PLACEMENT" "LABELS" ShowLikeOrWhere?

Examples

  1. SHOW PLACEMENT LABELS;
  1. +--------+----------------+
  2. | Key | Values |
  3. +--------+----------------+
  4. | region | ["us-east-1"] |
  5. | zone | ["us-east-1a"] |
  6. +--------+----------------+
  7. 2 rows in set (0.00 sec)

MySQL compatibility

This statement is a TiDB extension to MySQL syntax.

See also