mysql_real_query - Man Page

Name

mysql_real_query - execute a statement (binary safe)

Synopsis

#include <mysql.h>

int mysql_real_query(MYSQL * mysql,
                     const char * query,
                     unsigned long length);

Description

mysql_real_query() is the binary safe function for performing a statement on the database server.

Parameter

  • mysql - a mysql handle, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3).
  • query - a string containing the statement to be performed.
  • length - length of the string.

Notes

Return value

Returns zero on success, otherwise non zero.

See also

Referenced By

mysql_more_results(3), mysql_next_result(3), mysql_query(3), mysql_read_query_result(3), mysql_store_result(3).

Version 3.3.1 MariaDB Connector/C