HomeMogDBMogDB StackUqbar
v3.1

Documentation:v3.1

Supported Versions:

Other Versions:

PQfname

Function

PQfname is used to return the column name associated with the given column number. Column numbers start from 0. The caller should not release the result directly. The result will be released when the associated PGresult handle is passed to PQclear.

Prototype

char *PQfname(const PGresult *res,
              int column_number);

Parameter

Table 1

Keyword Parameter Description
res Operation result handle.
column_number Number of columns.

Return Value

char pointers

Example

For details, see Example.

Copyright © 2011-2024 www.enmotech.com All rights reserved.