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

postgresql 查询某一个表中的所有字段,也就是查询所有的列名

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