eseguo un INSERT INTOCome posso ottenere "id" dopo aver INSERITO nel database MySQL con Python?
cursor.execute("INSERT INTO mytable(height) VALUES(%s)",(height))
e voglio ottenere la chiave primaria.
Il mio tavolo ha 2 colonne:
id primary, auto increment
height this is the other column.
Come faccio ad avere il "id", dopo che ho appena inserito questo?
http://stackoverflow.com/questions/706755/how-do-you-safect-and-efficiently-get-the-row-id-after-an-insert-with-mysql-usin – pmav99