如何在progress-openedge SQL查询中获取所有模式列表

问题描述

如何在PUBSYSPROGRESS的OpenEdge SQL查询获取架构列表:

Schema

在这种情况下

Schema Names

或者对于下面的结构。

Sports2000
  ↳ PUB
     ↳ Tables
  ↳ SYSPROGRESS
     ↳ Tables

解决方法

您所指的 schemaowner

select owner,count(*) as '#' from sysprogress.systables group by owner

将返回如下内容:

OWNER       #
PUB         157
SPORTS2020    1
SYSPROGRESS  49