Cassandra:如何在查询中包含结果?

时间:2019-07-18 00:54:25

标签: cassandra

我运行一个Cassandra命令:

cqlsh> capture 'out.txt';
cqlsh> select * from account;
cqlsh> exit;

但是如何获得“从帐户中选择*”与结果一起显示...以便将结果与命令相关联?我有20或30个要调试的选项。似乎很难做到。

1 个答案:

答案 0 :(得分:0)

通过命令不可能。 https://docs.datastax.com/en/archived/cql/3.3/cql/cql_reference/cqlshCapture.html

您可以做类似的事情

  

bash> echo'command 1'>> out.txt

cqlsh> capture 'out.txt';
cqlsh> select * from account;
cqlsh> exit;