postgresql 查询某一个表中的所有字段

select * from information_schema.columns
where table_schema='public' and table_name='表名称 ';
原文地址:https://www.cnblogs.com/wanghzh/p/9239408.html