In pyodbc, cursor.rowcountworks great when used cursor.execute(). However, when used, cursor.executemany()it always returns -1.
How to get the correct row counter for cursor.executemany()?
This applies to multiple insertions, updates, and deletions.
source
share