Python MySQLdb Insert Id


/ Published in: Python
Save to your folder(s)

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).


Copy this code and paste it in your HTML
  1. cursor.lastrowid

URL: http://asepandria.blogspot.com/2006/08/python-attributeerror-cursor-object.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.