【发布时间】:2021-09-16 22:15:30
【问题描述】:
我正在尝试使用 AWS Keyspace Cassandra 和 Cassandra Python 驱动程序来实现应用程序。我在我的 AWS 控制台中创建了 3 个键空间。
我正在尝试查找是否有任何查询可以一次性列出所有 3 个键空间中的所有可用表。 我尝试了以下查询,但失败了。
SELECT table_name, keyspace_name from system_schema.tables where keyspace_name IN ('mykeyspace','cycling')
AWS Keyspace 中的 CQL 编辑器是否不允许使用 IN 关键字?有人知道这样的查询或命令吗?
【问题讨论】:
-
上面的查询对我有用,我在 cqlsh 上试过。
-
以上查询将起作用。
-
我也查过了。它在 Cassandra 中有效,但在 AWS Keyspaces 中尚不支持。
标签: cassandra cql amazon-keyspaces