Oracle 5.0 Reference Manual page 2218

Table of Contents

Advertisement

Function
mysql_stmt_attr_set()
mysql_stmt_bind_param()
mysql_stmt_bind_result()
mysql_stmt_close()
mysql_stmt_data_seek()
mysql_stmt_errno()
mysql_stmt_error()
mysql_stmt_execute()
mysql_stmt_fetch()
mysql_stmt_fetch_column()
mysql_stmt_field_count()
mysql_stmt_free_result()
mysql_stmt_init()
mysql_stmt_insert_id()
mysql_stmt_num_rows()
mysql_stmt_param_count()
mysql_stmt_param_metadata()
mysql_stmt_prepare()
mysql_stmt_reset()
mysql_stmt_result_metadata()
mysql_stmt_row_seek()
mysql_stmt_row_tell()
mysql_stmt_send_long_data()
mysql_stmt_sqlstate()
mysql_stmt_store_result()
Call
mysql_stmt_init()
to prepare the statement string,
data, and
mysql_stmt_execute()
mysql_stmt_execute()
mysql_stmt_bind_param().
You can send text or binary data in chunks to server using mysql_stmt_send_long_data(). See
Section 20.6.10.25,
"mysql_stmt_send_long_data()".
If the statement is a
SELECT
mysql_stmt_prepare()
result set through mysql_stmt_result_metadata().
MYSQL_RES
You can supply the result buffers using mysql_stmt_bind_result(), so that the
mysql_stmt_fetch()
When statement execution has been completed, close the statement handle using
mysql_stmt_close()
C API Prepared Statement Function Overview
Description
Sets an attribute for a prepared statement
Associates application data buffers with the parameter markers in a
prepared SQL statement
Associates application data buffers with columns in a result set
Frees memory used by a prepared statement
Seeks to an arbitrary row number in a statement result set
Returns the error number for the last statement execution
Returns the error message for the last statement execution
Executes a prepared statement
Fetches the next row of data from a result set and returns data for all
bound columns
Fetch data for one column of the current row of a result set
Returns the number of result columns for the most recent statement
Free the resources allocated to a statement handle
Allocates memory for a
Returns the ID generated for an
prepared statement
Returns the row count from a buffered statement result set
Returns the number of parameters in a prepared statement
(Return parameter metadata in the form of a result set) Currently,
this function does nothing
Prepares an SQL statement string for execution
Resets the statement buffers in the server
Returns prepared statement metadata in the form of a result set
Seeks to a row offset in a statement result set, using value returned
from
mysql_stmt_row_tell()
Returns the statement row cursor position
Sends long data in chunks to server
Returns the SQLSTATE error code for the last statement execution
Retrieves a complete result set to the client
to create a statement handle, then
mysql_stmt_bind_param()
to execute the statement. You can repeat the
by changing parameter values in the respective buffers supplied through
or any other statement that produces a result set,
also returns the result set metadata information in the form of a
automatically returns data to these buffers. This is row-by-row fetching.
so that all resources associated with it can be freed.
2198
structure and initializes it
MYSQL_STMT
AUTO_INCREMENT
mysql_stmt_prepare()
to supply the parameter
column by a

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents