1

Can anybody tell how to get a list of column families under the current key space in Cassandra 2.0.4?

Kindly note that am using cqlsh to query the server.

Babu James
  • 2,740
  • 4
  • 33
  • 50

2 Answers2

1

This should do:

desc tables;

Also, not that cqlsh support tab-completion (à la bash), so pressing in the middle of a use or selectstatement also provides available parameter values.

Svend
  • 6,352
  • 1
  • 25
  • 38
1

In addition to Svend's very concise answer, you can also query system.schema_columnfamilies with the name of the keyspace in question:

SELECT columnfamily_name 
FROM system.schema_columnfamilies
WHERE keyspace_name='myKeyspaceName';
Aaron
  • 55,518
  • 11
  • 116
  • 132