- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 57字
- 2021-07-03 00:19:27
Selecting a keyspace
Once you've created a keyspace, you would want to use it. In order to do this, employ the USE command:
cqlsh> USE "users";
This tells Cassandra that all future commands will implicitly refer to tables inside the users keyspace. If you close the CQL shell and reopen it, you'll need to reissue this command.