MySQL 9.4 C API Developer Guide / ... / C API Prepared Statement Interface / C API Prepared Statement Function Descriptions / mysql_stmt_data_seek()
voidmysql_stmt_data_seek(MYSQL_STMT *stmt, uint64_t offset) Seeks to an arbitrary row in a statement result set. Theoffset value is a row number and should be in the range from0 tomysql_stmt_num_rows(stmt)-1.
This function requires that the statement result set structure contains the entire result of the last executed query, somysql_stmt_data_seek() may be used only in conjunction withmysql_stmt_store_result().