-
Notifications
You must be signed in to change notification settings - Fork 258
mysql_fetch_lengths
Georg Richter edited this page Aug 15, 2018
·
2 revisions
mysql_fetch_lengths - returns an array of length values for the current row
#include <mysql.h>
unsigned long * mysql_fetch_lengths(MYSQL_RES * result);
The mysql_fetch_lengths()
function returns an array containing the lengths of every column of the current row within the result set (not including terminating zero character) or NULL
if an error occurred.
-
result
- a result set identifier returned by mysql_store_result() or mysql_use_result().
mysql_fetch_lengths()
is valid only for the current row of the result set. It returns NULL
if you call it before calling mysql_fetch_row() or after retrieving all rows in the result.
An array of unsigned long values . The size of the array can be determined by the number of fields in current result set.
MariaDB Connector/C Reference