mysql\_stmt\_data\_seek(3) MariaDB Connector/C mysql\_stmt\_data\_seek(3)

## [Name](#Name)

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

## [Synopsis](#Synopsis)

```
#include <mysql.h>
void mysql_stmt_data_seek(MYSQL_STMT * stmt,


                          my_ulonglong offset);
    
```

## [Description](#Description)

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

## [Parameter](#Parameter)

•

stmt - a statement handle, which was previously allocated by [**mysql\_stmt\_init(3)**](/man/enterprise-packages/mariadb-10.6/mysql_stmt_init.3).

•

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

## [Return value](#Return_value)

Returns void

## [Notes](#Notes)

•

The number of rows can be obtained with the function [**mysql\_stmt\_num\_rows(3)**](/man/enterprise-packages/mariadb-10.6/mysql_stmt_num_rows.3).

## [See Also](#See_Also)

•

[**mysql\_stmt\_row\_tell(3)**](/man/enterprise-packages/mariadb-10.6/mysql_stmt_row_tell.3)

•

[**mysql\_stmt\_store\_result(3)**](/man/enterprise-packages/mariadb-10.6/mysql_stmt_store_result.3)

•

[**mysql\_stmt\_num\_rows(3)**](/man/enterprise-packages/mariadb-10.6/mysql_stmt_num_rows.3)

Version 3.3

---

Document: mysql_stmt_data_seek(3) from mariadb-10.6 10.6.28-r4 (Chainguard OS)
Source: https://github.com/MariaDB/server.git
