mysql\_row\_seek(3) MariaDB Connector/C mysql\_row\_seek(3)

## [Name](#Name)

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

## [Synopsis](#Synopsis)

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


                                MYSQL_ROW_OFFSET offset);
    
```

## [Description](#Description)

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

## [Parameter](#Parameter)

•

result - a result set identifier returned by [**mysql\_store\_result(3)**](/man/enterprise-packages/mariadb-12.2/mysql_store_result.3).

•

offset - row offset. This value can be obtained either by mysql\_row\_seek() or [**mysql\_row\_tell(3)**](/man/enterprise-packages/mariadb-12.2/mysql_row_tell.3)

## [Notes](#Notes)

•

This function will not work if the result set was obtained by [**mysql\_use\_result(3)**](/man/enterprise-packages/mariadb-12.2/mysql_use_result.3).

## [Return value](#Return_value)

Returns the previous row offset.

## [See also](#See_also)

•

[**mysql\_store\_result(3)**](/man/enterprise-packages/mariadb-12.2/mysql_store_result.3)

•

[**mysql\_row\_tell(3)**](/man/enterprise-packages/mariadb-12.2/mysql_row_tell.3)

Version 3.4

---

Document: mysql_row_seek(3) from mariadb-12.2 12.2.2-r11 (Chainguard OS)
Source: https://github.com/MariaDB/server.git
