FreeBSD Manual Pages
mysql_stmt_field_count(3) MariaDB Connector/C mysql_stmt_field_count(3)
Name
mysql_stmt_field_count - Returns the number of fields in a result set
Synopsis
#include <mysql.h>
unsigned int mysql_stmt_field_count(MYSQL_STMT * stmt);
Description
Returns the number of fields in a result set of a prepared statement.
Return value
Number of fields or zero if the prepared statement has no result set.
Parameter
• stmt - a statement handle, which was previously allocated by
mysql_stmt_init(3).
Notes
• The number of fields will be available after calling mysql_stmt_pre-
pare(3)
• mysql_stmt_field_count() returns zero for statements which don't pro-
duce a result set.
See Also
• mysql_stmt_prepare(3)
• mysql_stmt_param_count(3)
Version 3.4 mysql_stmt_field_count(3)
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mysql_stmt_field_count&sektion=3&manpath=FreeBSD+Ports+15.0>
