

{"id":16033,"date":"2018-05-19T04:00:47","date_gmt":"2018-05-19T04:00:47","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=16033"},"modified":"2021-04-05T13:45:39","modified_gmt":"2021-04-05T08:15:39","slug":"cassandra-crud-operation","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/","title":{"rendered":"Cassandra Crud Operation &#8211; Create, Update, Read &amp; Delete"},"content":{"rendered":"<h2 class=\"western\">1. Objective &#8211; Crud Operation<\/h2>\n<p><span style=\"font-size: large\">In this<strong><a href=\"https:\/\/data-flair.training\/blogs\/apache-cassandra-tutorial\/\"> Cassandra Tutorial<\/a><\/strong>, we will learn about the Cassandra CRUD Operation: Create, Update, Read &amp; Delete. Moreover, we will cover the syntax and example of each CRUD operation in Cassandra.<\/span><\/p>\n<p>So, let&#8217;s start with Cassandra CRUD Operation.<\/p>\n<div id=\"attachment_36861\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-36861\" class=\"wp-image-36861 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg\" alt=\"Cassandra CRUD Operation\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-36861\" class=\"wp-caption-text\">Cassandra Crud Operation &#8211; Create, Update, Read &amp; Delete<\/p><\/div>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/cassandra-quiz\/\"><strong>Test how much you know about Cassandra<\/strong><\/a><\/p>\n<h2>2. What is Cassandra CRUD Operation?<\/h2>\n<p><span style=\"font-size: large\">Cassandra CRUD Operation stands for Create, Update, Read and Delete or Drop. These operations are used to manipulate data in Cassandra. Apart from this, CRUD operations in Cassandra, a user can also verify the command or the data.<\/span><\/p>\n<h3 class=\"western\">a. Create Operation<\/h3>\n<p><span style=\"font-size: large\">A\u00a0user can insert data into the table using Cassandra CRUD operation. The data is stored in the columns of a row in the table. Using INSERT command with proper what, a user can perform this operation.<\/span><br \/>\n<strong><a href=\"https:\/\/data-flair.training\/blogs\/cassandra-features\/\">Read about\u00a0 Important Features of\u00a0Cassandra\u00a0<\/a><\/strong><br \/>\n<span style=\"font-size: large\"><strong>A Syntax of Create Operation-<\/strong><\/span><\/p>\n<pre class=\"EnlighterJSRAW\">INSERT INTO &lt;table name&gt;\r\n(&lt;column1&gt;,&lt;column2&gt;....)\r\nVALUES (&lt;value1&gt;,&lt;value2&gt;...)\r\nUSING&lt;option&gt;<\/pre>\n<p><span style=\"font-size: large\">Let&#8217;s create a table data to illustrate the operation. Example consist of a table with information about students in college. The following table will give the details about the students.<\/span><br \/>\n<strong>Table.1 Cassandra Crud Operation &#8211; Create Operation<\/strong><\/p>\n<table style=\"height: 238px\" width=\"852\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"108\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/>\n<col width=\"108\" \/> <\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\"><strong>EN<\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong>NAME<\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong>BRANCH<\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong>PHONE<\/strong><\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\"><strong>CITY<\/strong><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\">001<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">Ayush<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">Electrical Engineering<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">9999999999<\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\">Boston<\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\">002<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">Aarav<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">Computer Engineering<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">8888888888<\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\">New York City<\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\">003<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">Kabir<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">Applied Physics<\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\">7777777777<\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\">Philadelphia<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #000000\"><span style=\"font-size: large\"><strong>EXAMPLE 1:<\/strong> Creating a table and inserting the data into a table:<br \/>\nINPUT:<br \/>\n<\/span><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cqlsh:keyspace1&gt; INSERT INTO student(en, name, branch, phone, city)\r\nVALUES(001, 'Ayush', 'Electrical Engineering', 9999999999, 'Boston');\r\ncqlsh:keyspace1&gt; INSERT INTO student(en, name, branch, phone, city)\r\nVALUES(002, 'Aarav', 'Computer Engineering', 8888888888, 'New York City');\r\ncqlsh:keyspace1&gt; INSERT INTO student(en, name, branch, phone, city)\r\nVALUES(003, 'Kabir', 'Applied Physics', 7777777777, 'Philadelphia');<\/pre>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/cassandra-architecture\/\">Let&#8217;s Learn Cassandra Architecture in detail<\/a><\/strong><br \/>\n<span style=\"color: #000000\"><span style=\"font-size: large\"><strong>Table.2 Cassandra Crud Operation &#8211; OUTPUT After Verification (READ operation)<\/strong><\/span><\/span><\/p>\n<table width=\"613\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"108\" \/>\n<col width=\"108\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/> <\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\">EN<\/span><\/strong><\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\">NAME<\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\">BRANCH<\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\">PHONE<\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\">CITY<\/span><\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-size: large\">001<\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-size: large\">Ayush<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">Electrical Engineering<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">9999999999<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">Boston<\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-size: large\">002<\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-size: large\">Aarav<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">Computer Engineering<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">8888888888<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">New York City<\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-size: large\">003<\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-size: large\">Kabir<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">Applied Physics<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">7777777777<\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-size: large\">Philadelphia<\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 class=\"western\">b.Update Operation<\/h3>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">The second operation in the Cassandra CRUD operation is the UPDATE operation. A user can use UPDATE command for the operation. This operation uses three keywords while updating the table. <\/span><\/span><\/p>\n<ul>\n<li><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>Where:<\/strong> This keyword will specify the location where data is to be updated.<\/span><\/span><\/li>\n<li><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>Set:<\/strong> This keyword will specify the updated value.<\/span><\/span><\/li>\n<li><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>Must:<\/strong> This keyword includes the columns composing the primary key.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">Furthermore, at the time of updating the rows, if a row is unavailable, then Cassandra has a feature to create a fresh row for the same.<\/span><\/span><br \/>\n<strong><a href=\"https:\/\/data-flair.training\/blogs\/cassandra-data-model\/\">Do you know How Cassandra Stores Data<\/a><\/strong><br \/>\n<span style=\"font-size: large\"><strong><span style=\"color: #0d0d0d\">A Syntax of Update Operation-<\/span><\/strong><\/span><\/p>\n<pre class=\"EnlighterJSRAW\">UPDATE &lt;table name&gt;\r\nSET &lt;column name&gt;=&lt;new value&gt;\r\n&lt;column name&gt;=&lt;value&gt;...\r\nWHERE &lt;condition&gt;<\/pre>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>EXAMPLE 2:<\/strong> Let&#8217;s change few details in the table &#8216;student&#8217;. In this example, we will update Aarav&#8217;s city from &#8216;New York City&#8217; to &#8216;San Fransisco&#8217;.<br \/>\nINPUT:<\/span><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cqlsh:keyspace1&gt; UPDATE student SET city='San Fransisco'\r\nWHERE en=002;<\/pre>\n<p><strong><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">Table.3 Cassandra Crud Operation &#8211; OUTPUT After Verification\u00a0<\/span><\/span><\/strong><\/p>\n<table width=\"613\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"108\" \/>\n<col width=\"108\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/> <\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">EN<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">NAME<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">BRANCH<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">PHONE<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">CITY<\/span><\/span><\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">001<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Ayush<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Electrical Engineering<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">9999999999<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Boston<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">002<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Aarav<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Computer Engineering<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">8888888888<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">San Fransisco<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">003<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Kabir<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Applied Physics<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">7777777777<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Philadelphia<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 class=\"western\">c. Read Operation<\/h3>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">This is the third Cassandra CRUD Operation &#8211; Read Operation. A user has a choice to read either the whole table or a single column. To read data from a table, a user can use SELECT clause. This command is also used for verifying the table after every operation.<\/span><\/span><\/p>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong><a href=\"https:\/\/data-flair.training\/blogs\/cassandra-shell-commands\/\">Have a look at Cassandra Shell Commands<\/a><\/strong><br \/>\n<strong>SYNTAX to read the whole table-<\/strong><br \/>\n<\/span><\/span><\/p>\n<pre class=\"EnlighterJSRAW\">SELECT * FROM &lt;table name&gt;;<\/pre>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>EXAMPLE 3:<\/strong> To read the whole table &#8216;student&#8217;.<br \/>\nINPUT:<br \/>\ncqlsh:keyspace1&gt; SELECT * FROM student;<\/span><\/span><br \/>\n<strong><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">Table.4 Cassandra Crud Operation &#8211; OUTPUT After Verification\u00a0<\/span><\/span><\/strong><\/p>\n<table width=\"613\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"108\" \/>\n<col width=\"108\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/> <\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">EN<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">NAME<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">BRANCH<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">PHONE<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">CITY<\/span><\/span><\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">001<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Ayush<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Electrical Engineering<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">9999999999<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Boston<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">002<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Aarav<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Computer Engineering<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">8888888888<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">San Fransisco<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">003<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Kabir<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Applied Physics<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">7777777777<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Philadelphia<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-size: large\"><strong><span style=\"color: #0d0d0d\">SYNTAX to read selected columns-<\/span><\/strong><\/span><\/p>\n<pre class=\"EnlighterJSRAW\">SELECT &lt;column name1&gt;,&lt;column name2&gt;.... FROM &lt;table name&gt;;<\/pre>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>EXAMPLE 4: <\/strong>To read columns of name and city from table &#8216;student&#8217;.<br \/>\nINPUT:<br \/>\n<\/span><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cqlsh:keyspace1&gt; SELECT name, city FROM student;<\/pre>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/cassandra-applications\/\">Read More about Why Cassandra Is So Popular?<\/a><\/strong><br \/>\n<strong><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">Table.5 Cassandra Crud Operation &#8211; OUTPUT After Verification\u00a0<\/span><\/span><\/strong><\/p>\n<table width=\"245\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"108\" \/>\n<col width=\"109\" \/> <\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">NAME<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">CITY<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Ayush<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Boston<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Aarav<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">San Fransisco<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Kabir<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Philadelphia<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 class=\"western\">d. Delete Operation<\/h3>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">Delete operation is the last Cassandra CRUD Operation, allows a user to delete data from a table. The user can use DELETE command for this operation.<\/span><\/span><br \/>\n<span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>A Syntax of Delete Operation-<\/strong><br \/>\n<\/span><\/span><\/p>\n<pre class=\"EnlighterJSRAW\">DELETE &lt;identifier&gt; FROM &lt;table name&gt; WHERE &lt;condition&gt;;<\/pre>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>EXAMPLE 5:<\/strong> In the &#8216;student&#8217; table let us delete the &#8216;phone&#8217; or phone number from 003 row.<br \/>\n<\/span><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cqlsh:keyspace1&gt; DELETE phone FROM student WHERE en=003;<\/pre>\n<p><strong><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">Table.6 Cassandra Crud Operation &#8211; OUTPUT After Verification\u00a0<\/span><\/span><\/strong><\/p>\n<table width=\"613\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"108\" \/>\n<col width=\"108\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/> <\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">EN<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">NAME<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">BRANCH<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">PHONE<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">CITY<\/span><\/span><\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">001<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Ayush<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Electrical Engineering<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">9999999999<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Boston<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">002<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Aarav<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Computer Engineering<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">8888888888<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">San Fransisco<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">003<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Kabir<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Applied Physics<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">null<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Philadelphia<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-size: large\"><strong><span style=\"color: #0d0d0d\">SYNTAX for deleting the entire row-<br \/>\n<\/span><\/strong><\/span><\/p>\n<pre class=\"EnlighterJSRAW\">DELETE FROM &lt;identifier&gt; WHERE &lt;condition&gt;;<\/pre>\n<p><span style=\"color: #0d0d0d\"><span style=\"font-size: large\"><strong>EXAMPLE 6:<\/strong> In the &#8216;student&#8217; table, let us delete the entire third row.<br \/>\ncqlsh:keyspace1&gt; DELETE FROM student WHERE en=003;<\/span><\/span><br \/>\n<strong><a href=\"https:\/\/data-flair.training\/blogs\/cassandra-books\/\">Let&#8217;s Explore Best Books To Learn Cassandra<\/a><\/strong><br \/>\n<strong><span style=\"color: #0d0d0d\"><span style=\"font-size: large\">Table.7 Cassandra Crud Operation &#8211; OUTPUT After Verification\u00a0<\/span><\/span><\/strong><\/p>\n<table width=\"613\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"108\" \/>\n<col width=\"108\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/>\n<col width=\"109\" \/> <\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">EN<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"108\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">NAME<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">BRANCH<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">PHONE<\/span><\/span><\/strong><\/span><\/td>\n<td width=\"109\"><span style=\"font-size: large\"><strong><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\">CITY<\/span><\/span><\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<tbody>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">001<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Ayush<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Electrical Engineering<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">9999999999<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Boston<\/span><\/span><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">002<\/span><\/span><\/span><\/td>\n<td width=\"108\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Aarav<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">Computer Engineering<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">8888888888<\/span><\/span><\/span><\/td>\n<td width=\"109\"><span style=\"color: #000000\"><span style=\"font-family: 'Times New Roman', serif\"><span style=\"font-size: large\">San Fransisco<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"western\">So, this was all\u00a0about Cassandra CRUD operations Tutorial. Hope you like our explanation<b><\/b>.<\/p>\n<h2 class=\"western\">3. Conclusion<\/h2>\n<p><span style=\"font-size: large\">Hence, in this article, we studied the CRUD operations in Cassandra. So, by using these operations, a user can make many applications or program in Cassandra. Furthermore, if you have any query, feel free to ask in the comment section.\u00a0<\/span><\/p>\n<p><strong>See also &#8211;\u00a0<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/cassandra-user-defined-types\/\">Cassandra User-Defined Types<\/a><\/p>\n<p style=\"font-weight: 400\"><strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Apache_Cassandra\">For reference\u00a0<\/a><\/strong><\/p>\n<p><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1921,&quot;href&quot;:&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Apache_Cassandra&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251002025136\\\/https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Apache_Cassandra&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 09:49:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-13 15:07:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-17 07:34:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-20 10:47:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-24 08:09:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-30 01:58:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-05 11:47:53&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-12 05:15:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-15 19:58:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-19 02:58:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-26 23:53:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-30 03:59:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-02 06:12:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-05 10:14:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-08 10:44:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-15 03:58:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 14:25:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-25 07:05:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-02 10:59:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 04:44:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-09 15:01:14&quot;,&quot;http_code&quot;:429},{&quot;date&quot;:&quot;2026-03-13 14:45:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 05:15:46&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-21 14:03:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-25 10:23:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-28 10:38:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-01 04:38:40&quot;,&quot;http_code&quot;:429},{&quot;date&quot;:&quot;2026-04-08 20:21:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 19:15:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-17 17:24:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-22 10:00:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-28 14:52:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-03 10:48:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-07 07:58:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-11 14:45:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-16 06:52:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-21 08:00:07&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-25 00:20:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-29 18:14:03&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-05 16:45:03&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-12 22:35:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-18 05:15:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-22 16:20:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-26 00:04:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-29 14:51:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-07-02 17:35:54&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-02 17:35:54&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Objective &#8211; Crud Operation In this Cassandra Tutorial, we will learn about the Cassandra CRUD Operation: Create, Update, Read &amp; Delete. Moreover, we will cover the syntax and example of each CRUD operation&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":36861,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[16804,3074,16805,3738,11360,15172],"class_list":["post-16033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cassandra","tag-cassandra-crud-operation","tag-create-operation","tag-crud-operation-in-cassandra","tag-delete-operation","tag-read-operation","tag-update-operation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cassandra Crud Operation - Create, Update, Read &amp; Delete - DataFlair<\/title>\n<meta name=\"description\" content=\"Cassandra CRUD Operation Tutorial- CRUD Operation in Cassandra: Crate operation,read operation,Delete operation,update operation with syntax &amp; example\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cassandra Crud Operation - Create, Update, Read &amp; Delete - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Cassandra CRUD Operation Tutorial- CRUD Operation in Cassandra: Crate operation,read operation,Delete operation,update operation with syntax &amp; example\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-19T04:00:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-05T08:15:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cassandra Crud Operation - Create, Update, Read &amp; Delete - DataFlair","description":"Cassandra CRUD Operation Tutorial- CRUD Operation in Cassandra: Crate operation,read operation,Delete operation,update operation with syntax & example","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/","og_locale":"en_US","og_type":"article","og_title":"Cassandra Crud Operation - Create, Update, Read &amp; Delete - DataFlair","og_description":"Cassandra CRUD Operation Tutorial- CRUD Operation in Cassandra: Crate operation,read operation,Delete operation,update operation with syntax & example","og_url":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-05-19T04:00:47+00:00","article_modified_time":"2021-04-05T08:15:39+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"Cassandra Crud Operation &#8211; Create, Update, Read &amp; Delete","datePublished":"2018-05-19T04:00:47+00:00","dateModified":"2021-04-05T08:15:39+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/"},"wordCount":771,"commentCount":3,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg","keywords":["Cassandra CRUD operation","Create Operation","CRUD Operation in Cassandra","Delete Operation","read operation","Update Operation"],"articleSection":["Cassandra Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/","url":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/","name":"Cassandra Crud Operation - Create, Update, Read &amp; Delete - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg","datePublished":"2018-05-19T04:00:47+00:00","dateModified":"2021-04-05T08:15:39+00:00","description":"Cassandra CRUD Operation Tutorial- CRUD Operation in Cassandra: Crate operation,read operation,Delete operation,update operation with syntax & example","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/05\/Cassandra-Curd-Operation-01.jpg","width":1200,"height":628,"caption":"Cassandra Crud Operation - Create, Update, Read &amp; Delete"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/cassandra-crud-operation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Cassandra Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/cassandra\/"},{"@type":"ListItem","position":3,"name":"Cassandra Crud Operation &#8211; Create, Update, Read &amp; Delete"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/16033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=16033"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/16033\/revisions"}],"predecessor-version":[{"id":90521,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/16033\/revisions\/90521"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/36861"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=16033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=16033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=16033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}