PQnfields

Function

PQnfields is used to return the number of columns (fields) in each row of the query result.

Prototype

int PQnfields(const PGresult *res);

Parameter

Table 1 PQnfields parameters

Keyword

Parameter Description

res

Operation result handle.

Return Value

Value of the int type

Example

For details, see Example.

Feedback
编组 3备份
    openGauss 2024-04-21 00:47:23
    cancel