mysql_prepare()
mysql_param_count()
mysql_prepare_result()
mysql_bind_param()
mysql_execute()
mysql_stmt_affected_rows()
mysql_bind_result()
mysql_stmt_store_result()
mysql_stmt_data_seek()
mysql_stmt_row_seek()
mysql_stmt_row_tell()
mysql_stmt_num_rows()
mysql_fetch()
mysql_send_long_data()
mysql_stmt_close()
mysql_stmt_errno()
mysql_stmt_error()
mysql_stmt_sqlstate()
mysql_stmt_affected_rows()
my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT *stmt)
Returns the total number of rows changed, deleted, or inserted by the last
executed statement. May be called immediatlely after mysql_execute()
for UPDATE
, DELETE
, or INSERT
statements. For
SELECT
statements, mysql_stmt_affected()
rows works like
mysql_num_rows()
.
An integer greater than zero indicates the number of rows affected
or retrieved. Zero indicates that no records were updated for an
UPDATE
statement, no rows matched the WHERE
clause in
the query, or that no query has yet been executed. -1 indicates that
the query returned an error or that, for a SELECT
query,
mysql_stmt_affected_rows()
was called prior to calling
mysql_fetch()
.
None.
For the usage of mysql_stmt_affected_rows()
, refer to the Example
from section 9.1.7.5 mysql_execute()
.