Answer Posted / 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 View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category