查询字段描述sql-postgresql
Posted IT小不点
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了查询字段描述sql-postgresql相关的知识,希望对你有一定的参考价值。
查询字段描述sql
SELECT ‘comment on column ‘ || n.nspname ||‘.‘|| c.relname || ‘.‘ || a.attname ||‘ is ‘‘‘|| col_description(a.attrelid,a.attnum) ||‘‘‘;‘ FROM pg_class as c join pg_attribute as a on a.attrelid = c.oid join pg_namespace n on c.relnamespace=n.oid where n.nspname = ‘cty_189‘ and c.relname = ‘jd_template‘ and a.attnum>0 and col_description(a.attrelid,a.attnum) is not null order by attnum ;
以上是关于查询字段描述sql-postgresql的主要内容,如果未能解决你的问题,请参考以下文章
使用具有不同片段字段的相同中继根查询的多个 react-router-relay 路由