Name
mysql_fetch_field_direct
Synopsis
MYSQL_FIELD * mysql_fetch_field_direct(MYSQL_RES * result, unsigned int fieldnr)
This function is the same as mysql_fetch_field
,
except that you specify which field you wish to examine, instead of
cycling through them. The first field in a result set is 0.
Example
MYSQL_FIELD *field; /* Retrieve the third field in the result set for examination */ field = mysql_fetch_field_direct(results, 2);
Get MySQL and mSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.