Oracle 5.0 Reference Manual page 2235

Table of Contents

Advertisement

The use of
mysql_stmt_num_rows()
mysql_stmt_store_result()
mysql_stmt_store_result(),
the row count is unavailable unless you count the rows as you fetch them.
mysql_stmt_num_rows()
SELECT. For statements such as INSERT, UPDATE, or DELETE, the number of affected rows can be
obtained with mysql_stmt_affected_rows().
Return Values
The number of rows in the result set.
Errors
None.
20.6.10.18.
mysql_stmt_param_count()
unsigned long mysql_stmt_param_count(MYSQL_STMT *stmt)
Description
Returns the number of parameter markers present in the prepared statement.
Return Values
An unsigned long integer representing the number of parameters in a statement.
Errors
None.
Example
See the Example in
20.6.10.19.
mysql_stmt_param_metadata()
MYSQL_RES *mysql_stmt_param_metadata(MYSQL_STMT *stmt)
This function currently does nothing.
Description
Return Values
Errors
20.6.10.20.
mysql_stmt_prepare()
int mysql_stmt_prepare(MYSQL_STMT *stmt, const char *stmt_str, unsigned long
length)
Description
Given the statement handle returned by mysql_stmt_init(), prepares the SQL statement pointed
to by the string
argument. The string must consist of a single SQL statement. You should not add a terminating
semicolon (";") or
C API Prepared Statement Function Descriptions
to buffer the entire result set in the statement handle. If you use
mysql_stmt_num_rows()
is intended for use with statements that return a result set, such as
Section 20.6.10.10,
and returns a status value. The string length should be given by the
stmt_str
to the statement.
\g
depends on whether you used
"mysql_stmt_execute()".
2215
may be called immediately. Otherwise,
length

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents