smeeb
smeeb

Reputation: 29517

Generating CREATE TABLE statements for Cassandra keyspace

In Cassandra, is there a way to generate CREATE TABLE statements for all the existing tables inside a particular keyspace?

Upvotes: 0

Views: 639

Answers (1)

Ashraful Islam
Ashraful Islam

Reputation: 12840

DESC KEYSPACE KEYSPACE_NAME

Output CQL commands for the given keyspace. These CQL commands can be used to recreate the keyspace and tables.

Upvotes: 3

Related Questions