1mysql_fetch_row(3)            MariaDB Connector/C           mysql_fetch_row(3)
2
3
4
5   Name
6       mysql_fetch_row - fetches row of data from result set
7
8   Synopsis
9              #include <mysql.h>
10
11              MYSQL_ROW mysql_fetch_row(MYSQL_RES * result);
12
13   Description
14       Fetches  one row of data from the result set and returns it as an array
15       of char pointers (MYSQL_ROW), where each column is stored in an  offset
16       starting from 0 (zero).  Each subsequent call to this function will re‐
17       turn the next row within the result set, or NULL if there are  no  more
18       rows.
19
20   Parameter
21       • result - a result set identifier returned by mysql_store_result(3) or
22         mysql_use_result(3).
23
24   Notes
25       • If a column contains a NULL value the corresponding char pointer will
26         be set to NULL.
27
28       • Memory   associated   to   MYSQL_ROW   will  be  freed  when  calling
29         mysql_free_result(3) function.
30
31   Return value
32       A MYSQL_ROW structure (array of character  pointers)  representing  the
33       data  of the current row.  If there are no more rows available NULLwill
34       be returned.
35
36   See also
37mysql_use_result(3)
38
39mysql_store_result(3)
40
41
42
43Version 3.2.2                                               mysql_fetch_row(3)
Impressum