查询postgresql所有表中有哪些字段

前端之家收集整理的这篇文章主要介绍了查询postgresql所有表中有哪些字段前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
select  distinct t.field from (
SELECT c.relname,a.attnum,a.attname AS field,t.typname AS type,a.attlen AS length,a
.atttypmod AS lengthvar,a.attnotnull AS notnull from pg_class c,pg_attribute a,pg_type t where c.relname like '%stat_plan_result_%' and c.relname not like '%seq%' and a.attnum>0 and a.attrelid=c.oid and a.atttypid=t.oid
and a.attname not in ('planid','rtime','cell') ) t
原文链接:https://www.f2er.com/postgresql/194467.html

猜你在找的Postgre SQL相关文章