【问题标题】:Vertica: how to know what indexes a table has?Vertica:如何知道表有哪些索引?
【发布时间】:2020-05-05 19:26:54
【问题描述】:

假设我在 Vertica 数据库中有一个名为“my_table”的表,我想运行一个查询来告诉我该表上存在哪些索引。我该怎么做?

【问题讨论】:

    标签: vertica


    【解决方案1】:

    Vertica 中没有索引之类的东西。每个表都有投影(Physical SchemaWorking with Projections)。

    要查看表有哪些投影,请运行以下查询:

    SELECT *
    FROM projections
    WHERE anchor_table_name = 'my_table';
    

    【讨论】:

      猜你喜欢
      • 2013-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多