cursor.execute() will return the number of affected rows. You can also look at cursor.rowcount. This is true for any SQL statement (DELETE, INSERT, SELECT, UPDATE, etc.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using the normal MySQLdb module, how can I get the number of affected rows for a DELETE statement?
Joao
cursor.execute() will return the number of affected rows. You can also look at cursor.rowcount. This is true for any SQL statement (DELETE, INSERT, SELECT, UPDATE, etc.)
Ah, very cool. Thanks for the information! :)
Joao