Cassandra BatchIn Cassandra BATCH is used to execute multiple modification statements (insert, update, delete) simultaneously. It is very useful when you have to update some column as well as delete some of the existing. Syntax: Example: Let's take an example to demonstrate BATCH command. Here, we have a table named "student" with columns (student_id, student_fees student_name,), having the following data. In this example, we will perform the BATCH (Insert, Update and Delete) operations:
Now the BATCH is applied. You can verify it by using SELECT command. Here, you can see that the table is completely modified by the above commands. Next TopicCQL create data |