postgresql 获取表属性结构信息 https://my.oschina.net/longtian/blog/741303

 

1. 获取表中普通信息:如字段名,字段类型等等。

2.需要获取如comment,主外键等。(获取的信息比较全面,得到自己想要的信息。)

参考链接:

http://stackoverflow.com/questions/15928118/how-to-get-column-attributes-query-from-table-name-using-postgresql