Question : get id from just inserted row mysql server python
Answered by : joyous-jackal-7plgjnt4t1n6
Use cursor.lastrowid to get the last row ID inserted on the cursor object,
or connection.insert_id() to get the ID from the last insert on that connection.
Source : http://stackoverflow.com | Last Update : Mon, 16 Nov 20