加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

cassandra – 在Linux终端中对cqlsh命令的结果进行整理

发布时间:2020-12-13 16:57:56 所属栏目:Linux 来源:网络整理
导读:在使用cqlsh实用程序(Mongo .pretty()的cql版本)时,有没有办法在 Linux终端中对cql命令的结果进行美化?当输出正常显示时,读取结果变得非常困难,尤其是当存在嵌套文档和数组时 解决方法 也许您对EXPAND命令感兴趣? 用法:EXPAND ON; 从Datastax上的文档: T
在使用cqlsh实用程序(Mongo .pretty()的cql版本)时,有没有办法在 Linux终端中对cql命令的结果进行美化?当输出正常显示时,读取结果变得非常困难,尤其是当存在嵌套文档和数组时

解决方法

也许您对EXPAND命令感兴趣?

用法:EXPAND ON;

从Datastax上的文档:

This command lists the contents of each row of a table vertically,providing a more convenient way to read long rows of data than the default horizontal format. You scroll down to see more of the row instead of scrolling to the right. Each column name appears on a separate line in column one and the values appear in column two.

资料来源:https://docs.datastax.com/en/cql/3.3/cql/cql_reference/expand.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读