Updated on 2024-06-03 GMT+08:00

PQfnumberEx

Description

Returns the column number associated with the given column name. Columns are numbered starting at 0.

Prototype

int PQfnumberEx(const PGresult* res, const char* field_name, bool case_sensitive);

Parameters

Table 1 PQfnumberEx parameters

Keyword

Description

res

Handle to the operation result.

field_name

Column name.

case_sensitive

Specifies whether the column name is case sensitive.

Return Value

An integer of the int type.