mysql_stmt_field_count - Man Page

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

Notes

  • The number of fields will be available after calling mysql_stmt_prepare(3)
  • mysql_stmt_field_count() returns zero for statements which don’t produce a result set.

See Also

Referenced By

mariadb_stmt_fetch_fields(3), mysql_stmt_bind_result(3), mysql_stmt_param_count(3), mysql_stmt_store_result(3).

Version 3.2.2 MariaDB Connector/C