在cqlsh 2中有明确的“显示键空间”吗?(Is there a clear equivalent of 'show keyspaces' in cqlsh 2?)

编程入门 行业动态 更新时间:2024-10-04 01:27:43
在cqlsh 2中有明确的“显示键空间”吗?(Is there a clear equivalent of 'show keyspaces' in cqlsh 2?)

可以使用什么cqlsh命令来快速查看集群中的密钥空间? cqlsh不提供show keyspaces keyspaces并且describe cluster并不像我想要的简洁。

我正在使用以下规范:

cqlsh 2.2.0,Cassandra 1.1.10,CQL规范2.0.0,Thrift协议19.33.0

What cqlsh command can I use to quickly see the keyspaces in a cluster? cqlsh does not provide show keyspaces and describe cluster isn't as concise as I want.

I'm working using the following specifications:

cqlsh 2.2.0, Cassandra 1.1.10, CQL spec 2.0.0, Thrift protocol 19.33.0

最满意答案

很简单。 只需在你的cqlsh shell中输入这个命令即可

select * from system.schema_keyspaces;

在C * 3.x中,我们可以简单的使用

describe keyspaces

Very simple. Just enter this command in your cqlsh shell and enjoy

select * from system.schema_keyspaces;

In C*3.x, we can simply use

describe keyspaces

更多推荐

本文发布于:2023-07-09 10:14:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1085574.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中有   空间   cqlsh   clear   keyspaces

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!