Oracle 5.0 Reference Manual page 2233

Table of Contents

Advertisement

/* Free the prepared result metadata */
mysql_free_result(prepare_meta_result);
/* Close the statement */
if (mysql_stmt_close(stmt))
{
fprintf(stderr, " failed while closing the statement\n");
fprintf(stderr, " %s\n", mysql_stmt_error(stmt));
exit(0);
}
20.6.10.12.
mysql_stmt_fetch_column()
int mysql_stmt_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *bind, unsigned int
column, unsigned long offset)
Description
Fetch one column from the current result set row.
placed. It should be set up the same way as for mysql_stmt_bind_result().
which column to fetch. The first column is numbered 0.
which to begin retrieving data. This can be used for fetching the data value in pieces. The beginning of
the value is offset 0.
Return Values
Zero if the value was fetched successfully. Nonzero if an error occurred.
Errors
CR_INVALID_PARAMETER_NO
Invalid column number.
CR_NO_DATA
The end of the result set has already been reached.
20.6.10.13.
mysql_stmt_field_count()
unsigned int mysql_stmt_field_count(MYSQL_STMT *stmt)
Description
Returns the number of columns for the most recent statement for the statement handler. This value is
zero for statements such as
mysql_stmt_field_count()
mysql_stmt_prepare().
Return Values
An unsigned integer representing the number of columns in a result set.
Errors
None.
20.6.10.14.
mysql_stmt_free_result()
my_bool mysql_stmt_free_result(MYSQL_STMT *stmt)
C API Prepared Statement Function Descriptions
[2944]
[2945]
or
INSERT
can be called after you have prepared a statement by invoking
provides the buffer where data should be
bind
offset
that do not produce result sets.
DELETE
2213
column
is the offset within the data value at
indicates

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents