mysql_stmt_affected_rows
Syntax
my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);
stmt
- a statement handle, which was previously allocated by mysql_stmt_init().
Description
Returns the number of affected rows by the last prepared statement associated with mysql, if the operation was an "upsert" (INSERT, UPDATE, DELETE or REPLACE) statement, or -1 if the last prepared statement failed.
See Also
Last updated
Was this helpful?