Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Differentiate between drop and truncate in cqlsh



Differentiate between drop and truncate in cqlsh..

Answer / Saurabh Giri

In CQLSH, both DROP and TRUNCATE commands are used to remove data from a table. However, they have different behaviors:n1) DROP: This command completely removes the specified table, including the table's schema and any associated data. It cannot be undone once executed.n2) TRUNCATE: This command deletes all rows within a specified table but retains the table structure. Unlike DROP, it can be rolled back if executed as part of a transaction.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Cassandra Interview Questions

What do you understand by node in cassandra?

1 Answers  


Name the types of tunable consistency?

1 Answers  


Does Cassandra support ACID transactions?

1 Answers  


JMX stands for?

1 Answers  


What do you understand by mem-table in cassandra?

1 Answers  


What are the differences between a node, a cluster, and datacenter in Cassandra?

1 Answers  


How can a user create a Keyspace in Cassandra?

1 Answers  


What do you mean by “data centre” in cassandra?

1 Answers  


what is a cluster in cassandra?

1 Answers  


What is the relationship between apache hadoop, hbase, hive and cassandra?

1 Answers  


What is cqlsh? And why is it used?

1 Answers  


What are the different types of nosql databases?

1 Answers  


Categories