mysql_fetch_lengths3
Name
mysql_fetch_lengths - returns an array of length values for the current row
Synopsis
-
#include <mysql.h> unsigned long * mysql_fetch_lengths(MYSQL_RES * result);
Description
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.
Parameter
- •
-
result- a result set identifier returned bymysql_store_result(3)ormysql_use_result(3). ### Notesmysql_fetch_lengths()is valid only for the current row of the result set. It returnsNULLif you call it before callingmysql_fetch_row(3)or after retrieving all rows in the result.
Return value
An array of unsigned long values . The size of the array can be determined by the number of fields in current result set.
See also
•
|
|
|---|---|
•
|
Releases
3 releases since Debian 12 (Bookworm); the text changed 1 time.