<@U0A71G31CDV> how to check table name when I have...
# questions-and-troubleshooting
z
@Rocky how to check table name when I have table id on 4.0.10 share-nothing
r
To find a table name using its Table ID in a StarRocks shared-nothing cluster, you can use the
information_schema.tables_config
system table. This is the most direct way to map an ID to a name across the entire cluster. Method 1: Using
information_schema.tables_config
(Recommended)
Run the following SQL query:
Copy code
sql
SELECT table_schema, table_name 
FROM information_schema.tables_config 
WHERE table_id = <your_table_id>;
Method 2: Using
SHOW PROC
If you know which database the table belongs to, you can use the
SHOW PROC
command. This is often used for administrative troubleshooting: 1. Find the Database ID (if you only have the Table ID and need to browse):
Copy code
sql
   SHOW PROC '/dbs';
2. List tables in that database:
Copy code
sql
   SHOW PROC '/dbs/<db_id>';
   -- OR --
   SHOW PROC '/dbs/<database_name>';
The output will display a column
TableId
alongside
TableName
. Note on Version 4.0.10 While the current stable releases of StarRocks are in the 3.x series, the
information_schema.tables_config
table is the standard metadata source for table IDs in modern StarRocks architectures and remains the reliable method for identifying tables in shared-nothing deployments. Referencesdeployment/shared_data/azure.mddeployment/shared_data/s3.mddeployment/shared_data/minio.mddeployment/shared_data/hdfs.mdfaq/shared_data_faq.mdsql-reference/information_schema/tables_config.mddeployment/shared_data/gcs.md