Re: [GENERAL] column names query

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: [GENERAL] column names query
Дата
Msg-id ce7c5ed7-8d9a-af90-c31c-c24e5e153cef@hogranch.com
обсуждение исходный текст
Ответ на [GENERAL] column names query  (hamann.w@t-online.de)
Список pgsql-general
On 9/7/2017 12:18 AM, hamann.w@t-online.de wrote:
> is there a simple way to retrieve column names from a query - basically the way psql adds
> column headings when I do a select?

if you're using libpq to do your queries, PQfname(*result,
column_number) returns the name of that column number.

there are equivalent functions in most other APIs.


--
john r pierce, recycling bits in santa cruz



В списке pgsql-general по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: [GENERAL] Confused about max_standby_streaming_delay
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [GENERAL] WAL & ready files retained after turning off log shipping