mardi 10 mars 2015

Python: retrieve number of rows affected with SQL DELETE query

It seems it is quite easy to retrieve the number of rows SELECTed with a SQL query with



cursor.execute("SELECT COUNT(*) from ...")
result=cursor.fetchone()


but how should I retrieve the number of rows by a DELETE query?


Aucun commentaire:

Enregistrer un commentaire