Retrieving Comments from a PostgreSQL DB

后端 未结 13 2200
别那么骄傲
别那么骄傲 2020-12-05 13:13

I\'m running a project on a Postgres database and need to retrieve the comments on columns within the DB to be used as table headings and such. I have seen that there are a

13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-05 13:51

    Ok, so i worked it out to degree...

    select col_description(table id, column number)...

    ie: select col_description(36698,2);

    That worked, but is there an easier way to do this maybe bringing all the comments on all the columns and using the table name instead of the oid???

提交回复
热议问题