Oracle 5.0 Reference Manual page 2209

Table of Contents

Advertisement

mysql_store_result()
if it was an
INSERT
mysql_store_result()
check whether an error occurred by checking whether
mysql_errno()
An empty result set is returned if there are no rows returned. (An empty result set differs from a null
pointer as a return value.)
After you have called
can call
mysql_num_rows()
You can call
mysql_row_tell()
See
Section 20.6.13.1, "Why
mysql_query()
Return Values
A
MYSQL_RES
Errors
mysql_store_result()
CR_COMMANDS_OUT_OF_SYNC
Commands were executed in an improper order.
CR_OUT_OF_MEMORY
Out of memory.
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.70.
mysql_thread_id()
unsigned long mysql_thread_id(MYSQL *mysql)
Description
Returns the thread ID of the current connection. This value can be used as an argument to
mysql_kill()
If the connection is lost and you reconnect with mysql_ping(), the thread ID changes. This means
you should not get the thread ID and store it for later. You should get it when you need it.
C API Function Descriptions
returns a null pointer if the statement didn't return a result set (for example,
statement).
also returns a null pointer if reading of the result set failed. You can
returns nonzero, or
mysql_store_result()
to find out how many rows are in the result set.
mysql_fetch_row()
to obtain or set the current row position within the result set.
mysql_store_result()
Returns
Success".
result structure with the results.
resets
mysql_error()
[2942]
[2942]
[2942]
[2942]
[2941]
to kill the thread.
Note
This function does not work correctly if thread IDs become larger than
32 bits, which can occur on some systems. To avoid problems with
mysql_error()
mysql_field_count()
and gotten back a result that isn't a null pointer, you
to fetch rows from the result set, or
Sometimes Returns
(0) if an error occurred.
NULL
and
mysql_errno()
2189
returns a nonempty string,
returns zero.
mysql_row_seek()
After
NULL
if it succeeds.
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents