ฉันรันคำสั่ง INSERT INTO
cursor.execute("INSERT INTO mytable(height) VALUES(%s)",(height))
และฉันต้องการได้รับคีย์หลัก
ตารางของฉันมี 2 คอลัมน์:
id      primary, auto increment
height  this is the other column.
ฉันจะได้รับ "id" หลังจากที่ฉันใส่มันได้อย่างไร
                
                1
              
                  stackoverflow.com/questions/706755/…
                
                
                  
                    —
                     pmav99