Reputation: 11768
I am new to POSTGRES.I want to make a SELECT and list all the columns names and values.
Is there a function in library libpq-fe.h to get the column names of a sql query ?
Upvotes: 1
Views: 1662
Reputation: 54302
From Delphi code I use LibPQ and PQfname(SelectHandle, ColumnNr);
. It is described in http://www.postgresql.org/docs/9.2/static/libpq-exec.html
Upvotes: 3