For the complete documentation index, see llms.txt. This page is also available as Markdown.

mysql_stmt_data_seek

mysql_stmt_data_seek positions the row cursor to an arbitrary offset in a buffered prepared statement result set previously stored with mysql_stmt_store_result.

Syntax

void mysql_stmt_data_seek(MYSQL_STMT * stmt,
                          my_ulonglong offset);

Parameters

  • stmt - a statement handle, which was previously allocated by mysql_stmt_init().

  • offset - row offset. This value must between 0 and number of rows - 1.

Description

Seeks to an arbitrary row in statement result set obtained by a previous call to mysql_stmt_store_result().

Return Value

Returns void.

The number of rows can be obtained with the function mysql_stmt_num_rows().

See Also

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?