Oracle 5.0 Reference Manual page 2208

Table of Contents

Advertisement

Return Values
This function always returns 0. If SSL setup is incorrect,
when you attempt to connect.
20.6.6.68.
mysql_stat()
const char *mysql_stat(MYSQL *mysql)
Description
Returns a character string containing information similar to that provided by the
command. This includes uptime in seconds and the number of running threads, questions, reloads, and
open tables.
Return Values
A character string describing the server status.
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.69.
mysql_store_result()
MYSQL_RES *mysql_store_result(MYSQL *mysql)
Description
After invoking
or
mysql_use_result()
DESCRIBE, EXPLAIN,
you are done with the result set.
You don't have to call
statements, but it does not do any harm or cause any notable performance degradation if you call
mysql_store_result()
checking whether
If you enable multiple-statement support, you should retrieve results from calls to
or
mysql_real_query()
there are more results. For an example, see
Execution".
If you want to know whether a statement should return a result set, you can use
mysql_field_count()
mysql_store_result()
structure, and places the result into this structure.
C API Function Descriptions
[2942]
[2942]
[2942]
[2941]
or mysql_real_query(), you must call
mysql_query()
for every statement that successfully produces a result set (SELECT, SHOW,
TABLE, and so forth). You must also call
CHECK
mysql_store_result()
in all cases. You can detect whether the statement has a result set by
mysql_store_result()
by using a loop that calls
to check for this. See
reads the entire result of a query to the client, allocates a
mysql_real_connect()
if an error occurred.
NULL
or
mysql_use_result()
returns a nonzero value (more about this later).
mysql_next_result()
Section 20.6.15, "C API Support for Multiple Statement
Section 20.6.6.22,
2188
returns an error
mysqladmin status
mysql_store_result()
mysql_free_result()
for other
mysql_query()
to determine whether
"mysql_field_count()".
MYSQL_RES
after

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents