1mysql_real_query(3)           MariaDB Connector/C          mysql_real_query(3)
2
3
4
5   Name
6       mysql_real_query - execute a statement (binary safe)
7
8   Synopsis
9              #include <mysql.h>
10
11              int mysql_real_query(MYSQL * mysql,
12                                   const char * query,
13                                   unsigned long length);
14
15   Description
16       mysql_real_query()  is the binary safe function for performing a state‐
17       ment on the database server.
18
19   Parameter
20       • mysql  -  a  mysql  handle,  which  was   previously   allocated   by
21         mysql_init(3) and connected by mysql_real_connect(3).
22
23       • query - a string containing the statement to be performed.
24
25       • length - length of the string.
26
27   Notes
28       • Contrary  to  the mysql_query(3) function, mysql_real_query is binary
29         safe.
30
31       • To determine  if  mysql_real_query  returns  a  result  set  use  the
32         mysql_num_fields(3) function.
33
34   Return value
35       Returns zero on success, otherwise non zero.
36
37   See also
38mysql_query(3)
39
40mysql_num_fields(3)
41
42mysql_use_result(3)
43
44mysql_store_result(3)
45
46
47
48Version 3.2.2                                              mysql_real_query(3)
Impressum