PostgreSQL教程

postgreSQL常用sql

本文主要是介绍postgreSQL常用sql,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

查看表字段注释

Select a.attnum,(select description from pg_catalog.pg_description where objoid=a.attrelid and objsubid=a.attnum) as descript,a.attname,pg_catalog.format_type(a.atttypid,a.atttypmod) as data_type from pg_catalog.pg_attribute a where 1=1 and a.attrelid=(select oid from pg_class where relname='tbl_pd_collect_position' ) and a.attnum>0 and not a.attisdropped order by a.attnum;
real_name是表名

这篇关于postgreSQL常用sql的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!