PostgreSQL查询包含指定字段的所有

select distinct relname,attname
from pg_attribute att, pg_class b
where b.oid = att.attrelid
and att.attname like'%nick' --可以模糊查询 '%nick%'
and attinhcount in (0)
and b.relkind in ('r')
order by b.relname;
--------------------------------------------------------
作者:怨女双鱼3X
链接:https://wenku.baidu.com/view/f0114edff51fb7360b4c2e3f5727a5e9846a2751.html
来源:百度文库
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

posted @ 2023-02-23 14:12  疯子110  阅读(236)  评论(0编辑  收藏  举报