1mysql_fetch_field(3) MariaDB Connector/C mysql_fetch_field(3)
2
3
4
5 Name
6 mysql_fetch_field - Returns the definition of one column of a result
7 set
8
9 Synopsis
10 #include <mysql.h>
11
12 MYSQL_FIELD * mysql_fetch_field(MYSQL_RES * result);
13
14 Description
15 Returns the definition of one column of a result set as a pointer to a
16 MYSQL_FIELD structure. Call this function repeatedly to retrieve in‐
17 formation about all columns in the result set.
18
19 Parameters
20 • result - a result set identifier returned by mysql_store_result(3) or
21 mysql_use_result(3).
22
23 Notes
24 • The field order will be reset if you execute a new SELECT query.
25
26 • In case only information for a specific field is required the field
27 can be selected by using the mysql_field_seek(3) function or obtained
28 by mysql_fetch_field_direct(3) function.
29
30 Return value
31 a pointer of a MYSQL_FIELD structure, or NULL if there are no more
32 fields.
33
34 See also
35 • mysql_field_seek(3)
36
37 • mysql_field_tell(3)
38
39 • mysql_fetch_field_direct(3)
40
41 • mysql_store_result(3)
42
43 • mysql_use_result(3)
44
45
46
47Version 3.3.1 mysql_fetch_field(3)