int mysql_real_query(MYSQL * mysql,
const char * q,
unsigned long);
mysql
- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
query
- a string containing the statement to be performed.
long
- length of the string.
mysql_real_query() is the binary safe function for performing a statement on the database server. Returns zero on success, otherwise non-zero.