मैं बयानपाइथन के साथ MySQL डेटाबेस में INSERT के बाद "आईडी" कैसे प्राप्त करूं?
cursor.execute("INSERT INTO mytable(height) VALUES(%s)",(height))
में एक सम्मिलित करें निष्पादित और मैं प्राथमिक कुंजी प्राप्त करना चाहते हैं।
मेरे तालिका 2 स्तंभ हैं:
id primary, auto increment
height this is the other column.
कैसे के बाद मैं सिर्फ इस डाला, मैं "आईडी" मिलता है?
http://stackoverflow.com/questions/706755/how-do-you-safely-and- कुशलतापूर्वक-get-the-row-id-after-an-insert-with-mysql-usin – pmav99