How to get the correct line count when using pyodbc cursor.executemany ()

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.

+4
source share
1 answer

, executemany, , , pyobbc. -1 . , .execute , pyodbc.

+1

Source: https://habr.com/ru/post/1622923/


All Articles