MySQL :: MySQL 8.0 C API Developer Guide :: 6.4.7 mysql_stmt_data_seek() (original) (raw)

6.4.7 mysql_stmt_data_seek()

void
mysql_stmt_data_seek(MYSQL_STMT *stmt,
                     uint64_t offset)

Description

Seeks to an arbitrary row in a statement result set. Theoffset value is a row number and should be in the range from 0 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().

Return Values

None.

Errors

None.