Re: [GENERAL] column names query - Mailing list pgsql-general

From John R Pierce
Subject Re: [GENERAL] column names query
Date
Msg-id ce7c5ed7-8d9a-af90-c31c-c24e5e153cef@hogranch.com
Whole thread Raw
In response to [GENERAL] column names query  (hamann.w@t-online.de)
List 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 by date:

Previous
From: Jeff Janes
Date:
Subject: Re: [GENERAL] Confused about max_standby_streaming_delay
Next
From: Michael Paquier
Date:
Subject: Re: [GENERAL] WAL & ready files retained after turning off log shipping