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

# mysql\_row\_seek(3)

### Name

mysql\_row\_seek - Positions the row cursor to an arbitrary row

### Synopsis

-

  ```
  #include <mysql.h>
  MYSQL_ROW_OFFSET mysql_row_seek(MYSQL_RES * result,
                                  MYSQL_ROW_OFFSET offset);
  ```

### Description

Positions the row cursor to an arbitrary row in a result set which was obtained by **[mysql\_store\_result(3)](/mysql_store_result/3.md)**.

### Parameter

- •

  `result` - a result set identifier returned by **[mysql\_store\_result(3)](/mysql_store_result/3.md)**.

- •

  `offset` - row offset. This value can be obtained either by mysql\_row\_seek() or **[mysql\_row\_tell(3)](/mysql_row_tell/3.md)**

### Notes

- •

  This function will not work if the result set was obtained by **[mysql\_use\_result(3)](/mysql_use_result/3.md)**.

### Return value

Returns the previous row offset.

### See also

- •

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

- •

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