Var*_*pta 1 cassandra datastax-java-driver
当我尝试使用datastax驱动程序3.0运行"describe keyspace keyspacename"命令时,它给了我一个错误
Exception in thread "main" com.datastax.driver.core.exceptions.SyntaxError: line 1:0 no viable alternative at input 'DESCRIBE' ([DESCRIBE]...)
Run Code Online (Sandbox Code Playgroud)
如何运行"describe keyspace keyspacename"命令?
DESCRIBE 是一个cqlsh扩展.
您可以像这样查询系统表
SELECT * from system.schema_keyspaces
WHERE keyspace_name = 'keyspacename';
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1016 次 |
| 最近记录: |