1mysql_stmt_field_count(3)     MariaDB Connector/C    mysql_stmt_field_count(3)
2
3
4
5   Name
6       mysql_stmt_field_count - Returns the number of fields in a result set
7
8   Synopsis
9              #include <mysql.h>
10
11              unsigned int mysql_stmt_field_count(MYSQL_STMT * stmt);
12
13   Description
14       Returns the number of fields in a result set of a prepared statement.
15
16   Return value
17       Number of fields or zero if the prepared statement has no result set.
18
19   Parameter
20       • stmt  -  a  statement  handle,  which  was  previously  allocated  by
21         mysql_stmt_init(3).
22
23   Notes
24       • The number of fields will be available after calling  mysql_stmt_pre‐
25         pare(3)
26
27       • mysql_stmt_field_count() returns zero for statements which don’t pro‐
28         duce a result set.
29
30   See Also
31mysql_stmt_prepare(3)
32
33mysql_stmt_param_count(3)
34
35
36
37Version 3.3.1                                        mysql_stmt_field_count(3)
Impressum