如何删除 Cassandra 列族中的所有数据? [英] How do I delete all data in a Cassandra column family?
问题描述
我正在寻找一种方法来从 cassandra 中的给定列族中删除所有行.
I'm looking for a way to delete all of the rows from a given column family in cassandra.
这相当于 SQL 中的 TRUNCATE TABLE
.
This is the equivalent of TRUNCATE TABLE
in SQL.
推荐答案
您可以使用 You can use the http://www.datastax.com/docs/1.0/references/cql/TRUNCATE 这篇关于如何删除 Cassandra 列族中的所有数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!truncate
thrift 调用,或 CQL 中的 TRUNCATE
命令.
truncate
thrift call, or the TRUNCATE <table>
command in CQL.
登录
关闭