简体   繁体   中英

How to extract table names and column names from plpgsql

On the same line as the @Dylan Hogg (user:249597) you mentioned the sql-app.infocruncher.com hosted library is there one for plpgsql? Would highly help GP migration tasks.

Basically I have the GP function script from which I'd like to get the inventory of table and column names. Ideally the Column data types as well.

此查询提供信息,仅限于特定表:

SELECT column_name, data_type FROM information_schema.columns WHERE table_schema = '<schema name>' AND table_name = '<table name>' ORDER BY ordinal_position;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM