---
name: "mysql_stmt_row_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_row_seek"
---

# mysql\_stmt\_row\_seek(3)

### Name

mysql\_stmt\_row\_seek - Positions row cursor.

### Synopsis

-

  ```
  #include <mysql.h>
  MYSQL_ROW_OFFSET mysql_stmt_row_seek(MYSQL_STMT * stmt,
                                       MYSQL_ROW_OFFSET offset);
  ```

### Description

Positions the row cursor to an arbitrary row in a result set which was obtained by **[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 can be obtained either by mysql\_stmt\_row\_seek() or **[mysql\_stmt\_row\_tell(3)](/mysql_stmt_row_tell/3.md)**.

### Return value

Returns the previous row offset.

### Notes

The result set must be obtained by **[mysql\_use\_result(3)](/mysql_use_result/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)**
