Showing posts with label tables. Show all posts
Showing posts with label tables. Show all posts

Thursday, 13 February 2020

Cassandra: Get All the tables in a keyspace

'DESCRIBE TABLES' command is used to get all the tables in a keyspace.

cqlsh> USE cassandratutorial;
cqlsh:cassandratutorial> 
cqlsh:cassandratutorial> DESCRIBE TABLES;

employee

cqlsh:cassandratutorial> 
cqlsh:cassandratutorial> DESC TABLES;

employee

cqlsh:cassandratutorial>


Previous                                                    Next                                                    Home

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