---
name: "mysql_stmt_data_seek"
section: "3"
platform: "linux"
package: "mariadb"
version: "13.0.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mysql_stmt_data_seek"
---

# mysql\_stmt\_data\_seek(3)

### Name

mysql\_stmt\_data\_seek - Seeks to an arbitrary row in statement result set

### Synopsis

-

  ```
  #include <mysql.h>
  void mysql_stmt_data_seek(MYSQL_STMT * stmt,
                            my_ulonglong offset);
  ```

### Description

Seeks to an arbitrary row in statement result set obtained by a previous call to **[mysql\_stmt\_store\_result(3)](/mysql_stmt_store_result/3.md)**.

### Parameter

- •

  `stmt` - a statement handle, which was previously allocated by **[mysql\_stmt\_init(3)](/mysql_stmt_init/3.md)**.

- •

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

### Return value

Returns void

### Notes

- •

  The number of rows can be obtained with the function **[mysql\_stmt\_num\_rows(3)](/mysql_stmt_num_rows/3.md)**.

### See Also

- •

  **[mysql\_stmt\_row\_tell(3)](/mysql_stmt_row_tell/3.md)**

- •

  **[mysql\_stmt\_store\_result(3)](/mysql_stmt_store_result/3.md)**

- •

  **[mysql\_stmt\_num\_rows(3)](/mysql_stmt_num_rows/3.md)**
