MySQL 9.4 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_data_seek()
voidmysql_data_seek(MYSQL_RES *result, uint64_t offset) 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().