PostgreSQL查询数据库中包含某种类型的表有哪些

select c.relname, ATTNAME, ATTTYPID, TYPNAME from sys_attribute a, sys_class c, sys_namespace n, sys_type t where a.attrelid = c.oid and a.attnum > 0  and c.relnamespace = n.oid and nspname = 'public' and a.atttypid = t.oid and typname = 'TEXT' and c.relkind = 'r';

 

posted @ 2019-09-03 11:36  狂神314  阅读(1045)  评论(0编辑  收藏  举报