opc0de
opc0de

Reputation: 11768

Get column names postgres

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

Answers (1)

Michał Niklas
Michał Niklas

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

Related Questions