GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
mysql_query(3) MariaDB Connector/C mysql_query(3)

mysql_query - executes a null terminated statement string


#include <mysql.h>
int mysql_query(MYSQL * mysql,
                const char * query);

    

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

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

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 mysql_real_query(3) or escape your data with mysql_hex_string(3).
To determine if a statement returned a result set use the function mysql_field_count(3).

Returns zero on success, non zero on failure.

mysql_real_query(3)
mysql_field_count(3)
mysql_hex_string(3)
mysql_use_result(3)
mysql_store_result(3)
Version 3.2.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.