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

## [Name](#Name)

mysql\_fetch\_row - fetches row of data from result set

## [Synopsis](#Synopsis)

```
#include <mysql.h>
MYSQL_ROW mysql_fetch_row(MYSQL_RES * result);
    
```

## [Description](#Description)

Fetches one row of data from the result set and returns it as an array of char pointers (MYSQL\_ROW), where each column is stored in an offset starting from 0 (zero). Each subsequent call to this function will return the next row within the result set, or NULL if there are no more rows.

## [Parameter](#Parameter)

•

result - a result set identifier returned by [**mysql\_store\_result(3)**](/man/os/mariadb-11.8/mysql_store_result.3) or [**mysql\_use\_result(3)**](/man/os/mariadb-11.8/mysql_use_result.3).

## [Notes](#Notes)

•

If a column contains a NULL value the corresponding char pointer will be set to NULL.

•

Memory associated to MYSQL\_ROW will be freed when calling [**mysql\_free\_result(3)**](/man/os/mariadb-11.8/mysql_free_result.3) function.

## [Return value](#Return_value)

A MYSQL\_ROW structure (array of character pointers) representing the data of the current row. If there are no more rows available NULLwill be returned.

## [See also](#See_also)

•

[**mysql\_use\_result(3)**](/man/os/mariadb-11.8/mysql_use_result.3)

•

[**mysql\_store\_result(3)**](/man/os/mariadb-11.8/mysql_store_result.3)

Version 3.4

---

Document: mysql_fetch_row(3) from mariadb-11.8 11.8.3-r0 (Chainguard OS)
Source: https://github.com/MariaDB/server.git
