在 Progress-OpenEdge 中获取数据库名称的查询是什么? [英] What is the query for getting database name in Progress-OpenEdge?

查看:78
本文介绍了在 Progress-OpenEdge 中获取数据库名称的查询是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在progress opensge中获取数据库名称,就像在SQL中一样,我们可以使用show databases获取数据库名称SELECT schema_name FROM information_schema.schemata; 使用 SQL 查询openedge DB.

How can we get database name in progress openedge like in SQL we can get database name by using show databases; or SELECT schema_name FROM information_schema.schemata; using SQL query to openedge DB.

推荐答案

在 ABL 中你可以

DEFINE VARIABLE i AS INTEGER     NO-UNDO.

DO i = 1 TO NUM-DBS:
    MESSAGE LDBNAME (i) SKIP 
            PDBNAME (i) SKIP 
            DBPARAM (i)
        VIEW-AS ALERT-BOX INFORMATION BUTTONS OK.
END.

在 OpenEdge SQL 中,SHOW CATALOGS 命令返回数据库/目录名称:

In OpenEdge SQL the SHOW CATALOGS command returns the database/catalog names:

norelrefer="nollow"://docs.progress.com/bundle/openedge-sql-reference/page/SHOW-CATALOGS.html?_ga=2.234385114.558448476.1620632697-128156788.1596090319

SHOW CATALOGS PRO_NAME;

这篇关于在 Progress-OpenEdge 中获取数据库名称的查询是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆