夏c++11 14 17 29 多线程从原理到线程池实战
2022-11-29 23:35 作者:OoAmandaOoo | 我要投稿
# # 方法二
# cursor.execute("select last_insert_id();")
# insert_id_info = cursor.fetchall()
# 获取 ID 必须在 commit 之前,否则获取为 0
db.commit()
except Exception as e:
print(traceback.format_exc())
cursor.close()
db.close()
return info