How do you safely and efficiently get the row id after an insert with mysql using MySQLdb in python?

后端 未结 4 570
独厮守ぢ
独厮守ぢ 2020-12-14 03:22

I have a simple table in mysql with the following fields:

  • id -- Primary key, int, autoincrement
  • name -- varchar(50)
  • description -- varchar(25
4条回答
提交回复
热议问题