> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/connectors/mariadb-connector-c/api-functions/mysql_data_seek.md).

# mysql\_data\_seek

## Syntax

```c
void mysql_data_seek(MYSQL_RES * result,
                     my_ulonglong offset);
```

## 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).

## Description

The `mysql_data_seek()` function seeks to an arbitrary function result pointer specified by the offset in the result set.

{% hint style="info" %}
This function can only be used with buffered result sets obtained from the use of the [mysql\_store\_result](/docs/connectors/mariadb-connector-c/api-functions/mysql_store_result.md) function.
{% endhint %}

## See Also

* [mysql\_num\_rows()](/docs/connectors/mariadb-connector-c/api-functions/mysql_num_rows.md)
* [mysql\_store\_result()](/docs/connectors/mariadb-connector-c/api-functions/mysql_store_result.md)

{% @marketo/form formId="4316" %}
