首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
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条回答
悲哀的现实
(楼主)
2020-12-14 04:10
You could also do a
conn.insert_id
0
讨论(0)
查看其它4个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题