Provides information about the connected Cassandra cluster, or about the data objects stored in the cluster.
DESCRIBE CLUSTER | SCHEMA
| KEYSPACE [<keyspace_name>]
| COLUMNFAMILIES
| COLUMNFAMILY <columnfamily_name>
The DESCRIBE or DESC command outputs information about the connected Cassandra cluster, or about the data stored on it. In CQL3, you can query the system tables directly using SELECT. Use DESCRIBE in one of the following ways:
To obtain additional information about the cluster schema, you can query system tables in CQL3.
DESCRIBE CLUSTER;
DESCRIBE KEYSPACE PortfolioDemo;
DESCRIBE COLUMNFAMILIES;
DESCRIBE COLUMNFAMILY Stocks;
| CQL Commands | CQL Shell Commands |
|---|---|
| ALTER TABLE | ASSUME |
| ALTER KEYSPACE | CAPTURE |
| BATCH | COPY |
| CREATE TABLE | DESCRIBE |
| CREATE INDEX | EXIT |
| CREATE KEYSPACE | SHOW |
| DELETE | SOURCE |
| DROP TABLE | |
| DROP INDEX | |
| DROP KEYSPACE | |
| INSERT | |
| SELECT | |
| TRUNCATE | |
| UPDATE | |
| USE |