4.0 KiB
| sidebar_label | title |
|---|---|
| SHOW Statement | SHOW Statement for Metadata |
In addition to running SELECT statements on INFORMATION_SCHEMA, you can also use SHOW to obtain system metadata, information, and status.
SHOW ACCOUNTS
SHOW ACCOUNTS;
Shows information about tenants on the system.
Note: TDengine Enterprise Edition only.
SHOW APPS
SHOW APPS;
Shows all clients (such as applications) that connect to the cluster.
SHOW BNODES
SHOW BNODES;
Shows information about backup nodes (bnodes) in the system.
SHOW CLUSTER
SHOW CLUSTER;
Shows information about the current cluster.
SHOW CONNECTIONS
SHOW CONNECTIONS;
Shows information about connections to the system.
SHOW CONSUMERS
SHOW CONSUMERS;
Shows information about all active 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 DATABASES;
Shows all user-created databases.
SHOW DNODES
SHOW DNODES;
Shows all dnodes in the system.
SHOW FUNCTIONS
SHOW FUNCTIONS;
Shows all user-defined functions in the system.
SHOW LICENSE
SHOW LICENSE;
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];
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 MODULES
SHOW MODULES;
Shows information about modules installed in the system.
SHOW QNODES
SHOW QNODES;
Shows information about qnodes in the system.
SHOW SCORES
SHOW SCORES;
Shows information about the storage space allowed by the license.
Note: TDengine Enterprise Edition only.
SHOW SNODES
SHOW SNODES;
Shows information about stream processing nodes (snodes) in the system.
SHOW STABLES
SHOW [db_name.]STABLES [LIKE 'pattern'];
Shows all supertables in the current database. You can use LIKE for fuzzy matching.
SHOW STREAMS
SHOW STREAMS;
Shows information about streams in the system.
SHOW SUBSCRIPTIONS
SHOW SUBSCRIPTIONS;
Shows all subscriptions in the current database.
SHOW TABLES
SHOW [db_name.]TABLES [LIKE 'pattern'];
Shows all standard tables and subtables in the current database. You can use LIKE for fuzzy matching.
SHOW TABLE DISTRIBUTED
SHOW TABLE DISTRIBUTED table_name;
Shows how table data is distributed.
SHOW TAGS
SHOW TAGS FROM child_table_name [FROM db_name];
Shows all tag information in a subtable.
SHOW TOPICS
SHOW TOPICS;
Shows all topics in the current database.
SHOW TRANSACTIONS
SHOW TRANSACTIONS;
Shows all running transactions in the system.
SHOW USERS
SHOW USERS;
Shows information about users on the system. This includes user-created users and system-defined users.
SHOW VARIABLES
SHOW VARIABLES;
SHOW DNODE dnode_id VARIABLES;
Shows the working configuration of the parameters that must be the same on each node. You can also specify a dnode to show the working configuration for that node.
SHOW VGROUPS
SHOW [db_name.]VGROUPS;
Shows information about all vgroups in the system or about the vgroups for a specified database.
SHOW VNODES
SHOW VNODES [dnode_name];
Shows information about all vnodes in the system or about the vnodes for a specified dnode.