For the complete documentation index, see llms.txt. This page is also available as Markdown.

mysql_fetch_lengths

mysql_fetch_lengths returns an array of byte lengths for each column in the current row of a MariaDB result set, valid only after mysql_fetch_row is called.

Syntax

unsigned long * mysql_fetch_lengths(MYSQL_RES * result);

Parameter

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.

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.

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.

See Also

spinner

Last updated

Was this helpful?