arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

mysql_fetch_lengths

hashtag
Syntax

unsigned long * mysql_fetch_lengths(MYSQL_RES * result);
  • result - a result set identifier returned by mysql_store_result() or mysql_use_result().

hashtag
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.

circle-info

mysql_fetch_lengths() is valid only for the current row of the result set. It returns NULL if you call it before calling or after retrieving all rows in the result.

hashtag
See also

mysql_fetch_row()
mysql_fetch_row()
spinner