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


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.