CQL DDL: USE, DESCRIBE, ALTER, DROP KEYSPACE statements
Master CQL DDL operations to USE, DESCRIBE, DROP, and ALTER keyspaces, with syntax and examples.
Keyspace related CQL DDL
CQL offers the following keyspace related commands. We will use the CQL shell to execute these commands.
Important: Please note that the Terminal widget is NOT persistent. Keyspaces created in a terminal session are not saved and will not be accessible after the session expires.
The USE
command
The USE
command selects a keyspace for subsequent commands. If the USE
command is not issued, the keyspace name must always be included with the table name in queries for Cassandra to understand the context of the table being referenced.
Get hands-on with 1300+ tech skills courses.