Oracle 5.0 Reference Manual page 2200

Table of Contents

Advertisement

Description
Executes the SQL statement pointed to by stmt_str, a string
string must consist of a single SQL statement without a terminating semicolon (";") or \g. If multiple-
statement execution has been enabled, the string can contain several statements separated by
semicolons. See
mysql_query()
mysql_real_query()
interprets as the end of the statement string.) In addition,
mysql_query()
If you want to know whether the statement should return a result set, you can use
mysql_field_count()
Return Values
Zero if the statement was successful. Nonzero if an error occurred.
Errors
CR_COMMANDS_OUT_OF_SYNC
Commands were executed in an improper order.
CR_SERVER_GONE_ERROR
The MySQL server has gone away.
CR_SERVER_LOST
The connection to the server was lost during the query.
CR_UNKNOWN_ERROR
An unknown error occurred.
20.6.6.55.
mysql_refresh()
int mysql_refresh(MYSQL *mysql, unsigned int options)
Description
This function flushes tables or caches, or resets replication server information. The connected user
must have the
The
options
values can be OR'ed together to perform multiple operations with a single call.
REFRESH_GRANT
Refresh the grant tables, like
REFRESH_LOG
Flush the logs, like
REFRESH_TABLES
Flush the table cache, like
REFRESH_HOSTS
Flush the host cache, like
C API Function Descriptions
Section 20.6.15, "C API Support for Multiple Statement
cannot be used for statements that contain binary data; you must use
instead. (Binary data may contain the "\0" character, which
because it does not call
to check for this. See
[2942]
[2942]
[2942]
[2941]
[577]
privilege.
RELOAD
argument is a bit mask composed from any combination of the following values. Multiple
FLUSH
FLUSH
LOGS.
FLUSH
FLUSH
HOSTS.
mysql_real_query()
on the statement string.
strlen()
Section 20.6.6.22,
PRIVILEGES.
TABLES.
2180
bytes long. Normally, the
length
Execution".
mysql_query()
is faster than
"mysql_field_count()".

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents