Orientdb 简明教程

OrientDB - Truncate Cluster

Truncate Cluster 命令将删除群集的所有记录。

The Truncate Cluster command deletes all records of a cluster.

以下语句是 Truncate Cluster 命令的基本语法。

The following statement is the basic syntax of Truncate Cluster Command.

TRUNCATE CLUSTER <cluster-name>

其中 <cluster-name> 是群集的名称。

Where <cluster-name> is the name of the cluster.

Example

尝试以下查询来截断名为销售的群集。

Try the following query to truncate the cluster named sales.

Orientdb {db = demo}> TRUNCATE CLUSTER Profile

如果成功执行了以上查询,您会获得以下输出。

If the above query is executed successfully, you will get the following output.

Cluster truncated successfully.