Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
1)像使用“DESCRIBE COLUMFAMILY schemaname.tablename”这个命令我们可以获得特定表的详细信息如何知道分配给特定表的索引列表?
提前致谢。
只需编写如下查询,您将获得特定表上的所有索引(查询中的 coulmnfamily_name):
SELECT index_name FROM system.schema_columns WHERE keyspace_name='your keyspace' AND columnfamily_name='table name on which you want to know indexes';