-
Notifications
You must be signed in to change notification settings - Fork 272
mysql_fetch_row
Georg Richter edited this page Aug 15, 2018
·
1 revision
mysql_fetch_row - fetches row of data from result set
#include <mysql.h>
MYSQL_ROW mysql_fetch_row(MYSQL_RES * result);Fetches one row of data from the result set and returns it as an array of char pointers (MYSQL_ROW), where each column is stored in an offset starting from 0 (zero). Each subsequent call to this function will return the next row within the result set, or NULL if there are no more rows.
-
result- a result set identifier returned by mysql_store_result() or mysql_use_result().
- If a column contains a
NULLvalue the corresponding char pointer will be set toNULL. - Memory associated to
MYSQL_ROWwill be freed when calling mysql_free_result() function.
A MYSQL_ROW structure (array of character pointers) representing the data of the current row. If there are no more rows available NULLwill be returned.
MariaDB Connector/C Reference