I am using MySQLdb in python 3 to insert multiple rows using executemany.
Now I need to get the primary keys after the multi insert..
Is there any way to get them?
You can use connection.insert_id()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With