mysql_data_seek — Adjusts the result pointer to an arbitrary row in the result

void mysql_data_seek(MYSQL_RES * result,
                     my_ulonglong offset);

The mysql_data_seek function seeks to an aribitrary function result pointer specified by the offset in the result set.

Parameters

result

A result set identifier returned by mysql_store_result().

offset

The field offset. Must be between zero and the total number of rows minus one (0..mysql_num_rows - 1).

Return value

Zero on success, nonzero if an error occured.

[Note]Notes

This function can only be used with buffered result sets obtained from the use of mysql_store_result function.

See also