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

## [Name](#Name)

mysql\_data\_seek - seeks to an offset

## [Synopsis](#Synopsis)

```
#include <mysql.h>
void mysql_data_seek(MYSQL_RES * result,


                     my_ulonglong offset);
    
```

## [Description](#Description)

The mysql\_data\_seek() function seeks to an arbitrary function result pointer specified by the offset in the result set. Returns zero on success, nonzero if an error occurred.

## [Parameters](#Parameters)

•

result - a result set identifier returned by mysql\_store\_result().

•

offset - the field offset. Must be between zero and the total number of rows minus one (0..mysql\_num\_rows - 1).

## [Notes](#Notes)

This function can only be used with buffered result sets obtained from the use of the [**mysql\_store\_result(3)**](/man/enterprise-packages/mariadb-13.0/mysql_store_result.3) function.

## [See also](#See_also)

•

[**mysql\_num\_rows(3)**](/man/enterprise-packages/mariadb-13.0/mysql_num_rows.3)

•

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

Version 3.4

---

Document: mysql_data_seek(3) from mariadb-13.0 13.0.2-r2 (Chainguard OS)
