Wednesday, 22 January 2020

Cassnadra: List all tables in a keyspace

‘DESCRIBE TABLES’ or ‘DESC TABLES’ command is used to list all tables in a keyspace.

cqlsh> DESC KEYSPACES;

system_schema  system             system_distributed
system_auth    cassandratutorial  system_traces     

cqlsh> 
cqlsh> USE system;
cqlsh:system> 
cqlsh:system> DESC TABLES;

available_ranges          peers               batchlog        transferred_ranges
batches                   compaction_history  size_estimates  hints             
prepared_statements       sstable_activity    built_views   
"IndexInfo"               peer_events         range_xfers   
views_builds_in_progress  paxos               local


Previous                                                    Next                                                    Home

No comments:

Post a Comment