Database Reference
In-Depth Information
Using PQftablecol
The PQftablecol function returns the column number within a table. The syntax for
PQftablecol is as follows:
int PQftablecol(const PGresult *res,
int column_number);
Using PQfformat
The PQfformat function returns the format of a column. The syntax for PQfformat is
as follows:
int PQfformat(const PGresult *res,
int column_number);
Using PQftype
The PQftype function returns the type of a column. The syntax for PQftype is
as follows:
Oid PQftype(const PGresult *res, int column_number);
Using PQfmod
The PQfmod function returns the type modiier of a column. The syntax for PQfmod is
as follows:
int PQfmod(const PGresult *res,
int column_number);
Using PQfsize
The PQfsize function returns the size of the column. The syntax for PQfsize is
as follows:
int PQfsize(const PGresult *res,
int column_number);
Using PQbinaryTuples
The PQbinaryTuples function returns whether the result is binary or text (1 for
binary and 0 for text). The syntax for PQbinaryTuples is as follows:
int PQbinaryTuples(const PGresult *res);
 
Search WWH ::




Custom Search