我使用USE billKeyspace;
进入一个键空间并开始使用它。现在我想退出这个键空间并进入另一个键空间。如何做到这一点?
如果我使用exit;
或quit;
,它会退出cql会话本身,然后我必须重新连接。
我使用USE billKeyspace;
进入一个键空间并开始使用它。现在我想退出这个键空间并进入另一个键空间。如何做到这一点?
如果我使用exit;
或quit;
,它会退出cql会话本身,然后我必须重新连接。
USE otherKeySpace;
。cqlsh> DESC KEYSPACEs;
system_distributed system_auth system system_traces
cqlsh> use system_distributed;
cqlsh:system_distributed>
cqlsh:system_distributed>
cqlsh:system_distributed> use system_auth;
cqlsh:system_auth>
你应该在键空间名称周围使用引号,特别是如果它包含除字母以外的其他符号。
use "test-space";
您可以不使用USE
命令来完成,像这样:
select * from KeySpace1.tbl ;
select * from KeySpace2.tbl ;