Home » CQL Create Data

Cassandra Create Data

INSERT command is used to insert data into the columns of the table.

Syntax:

Example:

We have a table named “student” with columns (student_id, student_fees student_name,) and need to insert some data in student table.

Cassandra Create data 1

student_id student_fees student_name
1 5000 ajeet
2 3000 kanchan
3 2000 shivani

Let’s see the code to insert data in student table.

Cassandra Create data 2

Now the data is inserted. You can use SELECT command to verify whether data is inserted or not.

Output:

Cassandra Create data 3


Next TopicCQL read data

You may also like