会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
输过败过、但不曾放弃过
博客园
首页
新随笔
联系
订阅
管理
2014年5月10日
MySQLdb插入后获得插入id
摘要: print"ID of last record is ", int(cursor.lastrowid) #最后插入行的主键IDprint"ID of inserted record is ", int(conn.insert_id()) #最新插入行的主键ID,conn.insert_id()一定要...
阅读全文
posted @ 2014-05-10 11:39 李伯波
阅读(204)
评论(0)
推荐(0)
编辑
公告