Doc Map
Application Development GuideDevelopment Based on libpqlibpq API ReferenceDatabase Statement Execution FunctionsPQnfields
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
Return Value
Value of the int type
Example
For details, see Example.
Feedback