mysql_affected_rows should get the number of rows affected in a previous MySQL operation, but I want to get the rows affected in a previous MySQL operation. For example:
update mytable set status=2 where column3="a_variable";
Before this operation, the state of some rows is already 2, and I want to get the affected rows in a previous MySQL operation, you cannot get it by issuing a query
select * from mytable where status=2
So how to do this?
source
share