PostgreSQL查询数据库中包含某种类型的表有哪些
时间:2019-09-03 12:13:29
收藏:0
阅读:329
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‘;
原文:https://www.cnblogs.com/kuang17/p/11452054.html
评论(0)