In MySQL, ROW_COUNT()
is a built-in function that returns the number of rows updated, inserted, or deleted by the preceding statement.
The value returned by ROW_COUNT()
is often the same as the row count that the mysql
client displays following statement execution, as well as the value from the mysql_affected_rows()
C API function.