Tuesday, January 25, 2022

Display cx_oracle error indicating which rows are affected

cursor.executemany("SQL EXEC STATEMENT", data, batcherrors=True)

for error in cursor.getbatcherrors():

    print("Error", error.message, "at row offset", error.offset) 



No comments:

Post a Comment

Learning System Design with Cute Animation

 This one is superb -  https://designed-to-scale.vercel.app/