我运行一个Cassandra命令:
cqlsh> capture 'out.txt';
cqlsh> select * from account;
cqlsh> exit;
但是如何获得“从帐户中选择*”与结果一起显示...以便将结果与命令相关联?我有20或30个要调试的选项。似乎很难做到。
答案 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;