MySQLdb -- any way to get "rows matched"?

Skip Montanaro skip at pobox.com
Tue Sep 2 12:00:58 EDT 2003


    Chris> When issuing updates in mysql (in the console window), mysql will
    Chris> tell you if any rows matched and how many rows were updated (see
    Chris> below).  I know how to get number of rows udpated using MySQLdb,
    Chris> but is there any way to get the number of rows matched?  

I believe the return value of the cursor's execute() method gives you the
number of rows which matched.

Skip





More information about the Python-list mailing list