【发布时间】:2014-03-07 19:22:22
【问题描述】:
根据文档:http://cassandra.apache.org/doc/cql3/CQL.html#dropTableStmt 和 http://www.datastax.com/documentation/cql/3.1/webhelp/index.html#cql/cql_reference/drop_table_r.html
只有当表存在时才可以使用以下语法删除表:
DROP TABLE IF EXISTS keyspace_name.table_name
但是我收到以下错误:
cqlsh:default> DROP TABLE IF EXISTS default.my_table;
Bad Request: line 1:14 no viable alternative at input 'EXISTS'
我正在使用以下版本: [cqlsh 4.1.0 |卡桑德拉 1.2.10 | CQL 规范 3.0.5 | Thrift 协议 19.36.0]
是我遗漏了什么还是文档问题?
【问题讨论】: