【问题标题】:Postgres: is it posible to see how a Database View is constructed [duplicate]Postgres:是否可以查看数据库视图的构建方式[重复]
【发布时间】:2021-06-13 01:37:47
【问题描述】:

是否可以查看 Postgres 中的数据库视图是如何构建的,以查看用于创建该视图的查询?

【问题讨论】:

    标签: postgresql view


    【解决方案1】:

    psql:

    \d+ the_view
    
    --or
    
    select definition from pg_views where viewname = 'the_view';
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-22
      相关资源
      最近更新 更多