query-system-schema

EXPAND ON
SELECT * FROM system_schema.aggregates LIMIT 1;
EXPAND OFF;
SELECT * FROM system_schema.columns
  WHERE keyspace_name = 'cycling' AND table_name = 'cyclist_name';
SELECT * FROM system_traces.events;
EXPAND ON
SELECT * FROM system_schema.functions LIMIT 1;
EXPAND OFF;
SELECT id, keyspace_name, table_name FROM system_schema.tables
  WHERE keyspace_name = 'cycling' AND table_name = 'cyclist_name';
SELECT * FROM system_schema.keyspaces;
SELECT peer, data_center, dse_version, graph FROM system.peers;
EXPAND ON;
SELECT * FROM system_schema.tables
  WHERE keyspace_name = 'cycling' AND table_name = 'cyclist_name';
EXPAND OFF;
SELECT total - progress AS remaining FROM system_views.sstable_tasks;
EXPAND ON
SELECT * FROM system_schema.types LIMIT 1;
EXPAND OFF;

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com