4
我想了解卡桑德拉的DROP TABLE IF EXISTS
的語法。如何在Cassandra中使用「DROP TABLE IF EXISTS」?
DROP TABLE IF EXISTS nonexistanttable;
似乎 不工作:
$ ./cqlsh
Connected to Test Cluster at localhost:9160.
[cqlsh 4.1.1 | Cassandra 2.0.5 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
Use HELP for help.
cqlsh> USE Foo;
cqlsh:foo> DROP TABLE IF EXISTS bar;
Bad Request: unconfigured columnfamily bar
我在做什麼錯?