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

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

select * from information_schema.columns
where table_schema='public' and table_name='表名称 ';
posted @ 2017-11-10 11:14  hzxPeter  阅读(21813)  评论(5编辑  收藏  举报