Oracle 5.0 Reference Manual page 2234

Table of Contents

Advertisement

Description
Releases memory associated with the result set produced by execution of the prepared statement. If
there is a cursor open for the statement,
Return Values
Zero if the result set was freed successfully. Nonzero if an error occurred.
Errors
20.6.10.15.
mysql_stmt_init()
MYSQL_STMT *mysql_stmt_init(MYSQL *mysql)
Description
Create a
MYSQL_STMT
*).
See also
Section 20.6.8, "C API Prepared Statement Data
Return Values
A pointer to a
Errors
CR_OUT_OF_MEMORY
Out of memory.
20.6.10.16.
mysql_stmt_insert_id()
my_ulonglong mysql_stmt_insert_id(MYSQL_STMT *stmt)
Description
Returns the value generated for an
statement. Use this function after you have executed a prepared
contains an
See
Section 20.6.6.37,
Return Values
Value for
AUTO_INCREMENT
execution of prepared statement, or value generated by
Return value is undefined if statement does not set
Errors
None.
20.6.10.17.
mysql_stmt_num_rows()
my_ulonglong mysql_stmt_num_rows(MYSQL_STMT *stmt)
Description
Returns the number of rows in the result set.
C API Prepared Statement Function Descriptions
handle. The handle should be freed with
structure in case of success.
MYSQL_STMT
[2942]
field.
AUTO_INCREMENT
"mysql_insert_id()", for more information.
column which was automatically generated or explicitly set during
mysql_stmt_free_result()
NULL
column by the prepared
AUTO_INCREMENT
LAST_INSERT_ID(expr)
AUTO_INCREMENT
2214
closes it.
mysql_stmt_close(MYSQL_STMT
Structures", for more information.
if out of memory.
INSERT
statement on a table which
INSERT
value.
or
UPDATE
[961]
function.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents