mysql_stmt_affected_rows
- Provided by: libmariadb-dev (Version: 1:10.11.14-0ubuntu0.24.04.1)
- Source: mariadb
- Report a bug
mysql_stmt_affected_rows - Returns the number of affected rows from previous executed prepared statement
#include <mysql.h>
my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);
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.