How to switch one keyspace to another in Cassandra

In this video, we will how to switch one keyspace to another in Cassandra step by step.

We can use USE command to switch from one keyspace to other in Apache Cassandra. The USE statement changes the current keyspace to the specified keyspace.

How to switch one keyspace to another in Cassandra

1. Syntax to change current keyspace to another.

use keyspace_name;

2. Example to switch keyspace from current to another keyspace assume ‘r2schools’.

use r2schools;