📜  从刚刚插入的行mysql服务器python获取id - SQL代码示例

📅  最后修改于: 2022-03-11 15:04:56.245000             🧑  作者: Mango

代码示例1
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.