select标签:语句,name,column,查询,pgsql,table,schema From: https://www.cnblogs.com/zzay/p/17832162.html
table_name,
column_name,
data_type,
udt_name,
table_catalog,
table_schema,
table_name,
column_name,
ordinal_position,
column_default
from
information_schema. columns
where
table_schema = '{schema}'
and table_name = '{table}'