开发者社区> 问答> 正文

如何查询Hologres内部表数量

已解决

如何查询Hologres内部表数量

展开
收起
提个问题 2024-06-01 10:05:18 15 0
1 条回答
写回答
取消 提交回答
  • 开发者社区问答官方账号
    官方回答
    采纳回答

    检查不同Schema下的内部表数量

    select table_namespace as schema    ,count(distinct table_name) as total_tables    ,count(distinct table_name) filter( where property_key='storage_format') as inner_tables from hologres.hg_table_properties where table_namespace NOT IN ('hologres','hologres_statistic','pg_catalog') group by table_namespace order by table_namespace;

    详情可参考文档

    2024-06-01 10:05:19
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
实时数仓Workshop(广州站)- 李佳林 立即下载
阿里云实时数仓Hologres技术揭秘2.0 立即下载
实时数仓Hologres技术实战一本通2.0版(下) 立即下载