【问题标题】:Is there a way to check the schema of a table in QuestDB?有没有办法检查 QuestDB 中表的架构?
【发布时间】:2021-05-21 13:51:59
【问题描述】:

我知道 UI 有一个模式浏览器,它显示列和一些关于缓存的信息,但是如果我禁用了 REST API 或者没有打开端口来浏览 Web 控制台,我希望能够检查这一点服务器的。如何从 SQL 中检查?

【问题讨论】:

    标签: questdb


    【解决方案1】:

    这些查询返回表架构

    tables
    
    -- or 
    
    select * from tables()
    
    -- this to show columns by table name
    
    show columns from <table>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-12
      • 1970-01-01
      • 2017-08-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-20
      相关资源
      最近更新 更多