-
Notifications
You must be signed in to change notification settings - Fork 256
mysql_fetch_field
Georg Richter edited this page Aug 15, 2018
·
2 revisions
mysql_fetch_field - Returns the definition of one column of a result set
#include <mysql.h>
MYSQL_FIELD * mysql_fetch_field(MYSQL_RES * result);
Returns the definition of one column of a result set as a pointer to a MYSQL_FIELD structure. Call this function repeatedly to retrieve information about all columns in the result set.
-
result
- a result set identifier returned by mysql_store_result() or mysql_use_result().
- The field order will be reset if you execute a new SELECT query.
- In case only information for a specific field is required the field can be selected by using the mysql_field_seek() function or obtained by mysql_fetch_field_direct() function.
a pointer of a MYSQL_FIELD
structure, or NULL if there are no more fields.
MariaDB Connector/C Reference