In BE, when a problem happened, in the log, we can find the database id, table id, partition id, but no database name, table name, partition name. In FE, there also no way to find database name/table name/partition name accourding to database id/table id/partition id. Therefore, this patch add 3 new commands: 1. show database id; mysql> show database 10002; +----------------------+ | DbName | +----------------------+ | default_cluster:test | +----------------------+ 2. show table id; mysql> show table 11100; +----------------------+-----------+-------+ | DbName | TableName | DbId | +----------------------+-----------+-------+ | default_cluster:test | table2 | 10002 | +----------------------+-----------+-------+ 3. show partition id; mysql> show partition 11099; +----------------------+-----------+---------------+-------+---------+ | DbName | TableName | PartitionName | DbId | TableId | +----------------------+-----------+---------------+-------+---------+ | default_cluster:test | table2 | p201708 | 10002 | 11100 | +----------------------+-----------+---------------+-------+---------+
1.1 KiB
1.1 KiB
title, language
| title | language |
|---|---|
| SHOW TABLE | en |
SHOW TABLE
Description
This statement is used to display database name, table name according to table id (for administrators only) Grammar: SHOW TABLE [table_id]
example
- Display database name, table name according to table id SHOW TABLE 10001;
keyword
SHOW,TABLE