Get Id From Just Inserted Row Mysql Server Python

[Solved] Get Id From Just Inserted Row Mysql Server Python | Php - Code Explorer | yomemimo.com
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

Answers related to get id from just inserted row mysql server python

Code Explorer Popular Question For Php