SHOW Statement for Metadata
SHOW
command can be used to get brief system information. To get details about metadata, information, and status in the system, please use select
to query the tables in database INFORMATION_SCHEMA
.
SHOW APPS
SHOW APPS;
Shows all clients (such as applications) that connect to the cluster.
SHOW CLUSTER
SHOW CLUSTER;
Shows information about the current cluster.
SHOW CLUSTER ALIVE
SHOW CLUSTER ALIVE;
It is used to check whether the cluster is available or not. Return value: 0 means unavailable, 1 means available, 2 means partially available (some dnodes are offline, the other dnodes are available)
SHOW CONNECTIONS
SHOW CONNECTIONS;
Shows information about connections to the system.
SHOW CONSUMERS
SHOW CONSUMERS;
Shows information about all consumers in the system.
SHOW CREATE DATABASE
SHOW CREATE DATABASE db_name;
Shows the SQL statement used to create the specified database.
SHOW CREATE STABLE
SHOW CREATE STABLE [db_name.]stb_name;
Shows the SQL statement used to create the specified supertable.
SHOW CREATE TABLE
SHOW CREATE TABLE [db_name.]tb_name
Shows the SQL statement used to create the specified table. This statement can be used on supertables, standard tables, and subtables.
SHOW DATABASES
SHOW [USER | SYSTEM] DATABASES;
Shows all databases. The USER
qualifier specifies only user-created databases. The SYSTEM
qualifier specifies only system databases.
SHOW DNODES
SHOW DNODES;
Shows all dnodes in the system.
SHOW FUNCTIONS
SHOW FUNCTIONS;
Shows all user-defined functions in the system.
SHOW LICENCES
SHOW LICENCES;
SHOW GRANTS;
Shows information about the TDengine Enterprise Edition license.
Note: TDengine Enterprise Edition only.
SHOW INDEXES
SHOW INDEXES FROM tbl_name [FROM db_name];
SHOW INDEXES FROM [db_name.]tbl_name;
Shows indices that have been created.
SHOW LOCAL VARIABLES
SHOW LOCAL VARIABLES;
Shows the working configuration of the client.
SHOW MNODES
SHOW MNODES;
Shows information about mnodes in the system.
SHOW QNODES
SHOW QNODES;
Shows information about qnodes in the system.
SHOW QUERIES
SHOW QUERIES;
Shows the queries in progress in the system.
SHOW SCORES
SHOW SCORES;
Shows information about the storage space allowed by the license.
Note: TDengine Enterprise Edition only.