/ Published in: Python
Documentation has a method listed at the connection level (conn.insert_id()) and online there are references to an older conn.db.insert_id(), but neither exists anymore (AFAIK).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
cursor.lastrowid
URL: http://asepandria.blogspot.com/2006/08/python-attributeerror-cursor-object.html