Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select Column Names for OpenEdge-SQL

I'm using DBeaver to connect to Open-Edge 11 database which supports SQL functions. The functions used HERE don't work. Here is a single example and the result:

Function:

SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'TxMSAGrading'

Error:

SQL Error [42S02]: [DataDirect][OpenEdge JDBC Driver][OpenEdge] Table/view/synonynm "INFORMATION_SCHEMA.COLUMNS" cannot be found. (15814)

How can I get column names?

like image 783
Cornelis Avatar asked Apr 25 '26 22:04

Cornelis


1 Answers

Column information is stored in Progress system tables called "syscolumns". Here is an example to retrieve column information of the "Customer" table:

select col from sysprogress.syscolumns where tbl = 'customer';
COL
--------------------------------
Address
Address2
Balance
City
Comments
Contact
Country
Credit-Limit
Cust-Num
Discount
Name
Phone
Postal-Code
Sales-Rep
State
Terms

List of all the system tables in Progress OpenEdge is here.

like image 60
Austin Avatar answered Apr 27 '26 13:04

Austin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!