postgresql view table and column

query column
SELECT
*
FROM
information_schema. COLUMNS
WHERE
TABLE_NAME = 'daily_active_report'
AND COLUMN_NAME = 'coupon_name';
 
 
lookup table
SELECT
*
FROM
information_schema. tables
 
WHERE
TABLE_NAME = 'daily_active_report'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326146339&siteId=291194637