All pages
Powered by GitBook
1 of 1

Loading...

mysql_query

Syntax

  • mysql - a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().

  • query -a null terminated string containing the statement to be performed.

Description

Performs a statement pointed to by the null terminate string query against the database. Contrary to , mysql_query() is not binary safe.

Returns zero on success, non zero on failure

For executing multi statements the statements within the null terminated string statements must be separated by a semicolon.

If your statement contains binary data you should use or escape your data with .

To determine if a statement returned a result set use the function .

See also

int mysql_query(MYSQL * mysql,
                const char * query);
mysql_store_result()
mysql_real_query()
mysql_real_query()
mysql_hex_string()
mysql_num_fields()
mysql_real_query()
mysql_num_fields()
mysql_hex_string()
mysql_use_result()