如何通过odbc从Progress数据库获取表模式

Not*_*tMe 8 schema progress-4gl openedge

我在sql 2008和Progress OpenEdge 10.1b服务器之间设置了链接服务器.

我如何获得表模式?

ksi*_*mon 18

您可以获得所有可用的表:

select * from sysprogress.SYSTABLES;
Run Code Online (Sandbox Code Playgroud)

要么

select * from sysprogress.SYSTABLES_FULL;
Run Code Online (Sandbox Code Playgroud)

您可以获取指定表的所有列:

select * from sysprogress.SYSCOLUMNS where TBL = 'table_name';
Run Code Online (Sandbox Code Playgroud)

要么

select * from sysprogress.SYSCOLUMNS_FULL where TBL = 'table_name';
Run Code Online (Sandbox Code Playgroud)

它仅适用于DBA特权用户.

OpenEdge产品文档中的更多详细信息:https://community.progress.com/community_groups/openedge_general/w/openedgegeneral/1329.openedge-product-documentation-overview

文档标题:SQL参考

章:OpenEdge SQL系统目录表