Documentation Home
MySQL 9.4 C API Developer Guide
Download this Manual
PDF (US Ltr) - 1.4Mb
PDF (A4) - 1.4Mb


5.4.10 mysql_data_seek()

voidmysql_data_seek(MYSQL_RES *result,                uint64_t offset)

Description

Seeks to an arbitrary row in a query result set. Theoffset value is a row number. Specify a value in the range from0 tomysql_num_rows(result)-1.

This function requires that the result set structure contains the entire result of the query, somysql_data_seek() may be used only in conjunction withmysql_store_result(), not withmysql_use_result().

Return Values

None.

Errors

None.