会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小虫虫
博客园
首页
新随笔
联系
订阅
管理
2020年4月6日
接口测试 - python - 向数据库批量插入数据executemany()
摘要: 批量插入数据,两种方法: execute() executemany() executemany()效率远远高于execute(),推荐使用executemany() 代码如下: 1 import MySQLdb 2 3 conn = MySQLdb.connect( 4 host='fjkdasj
阅读全文
posted @ 2020-04-06 11:36 小虫虫大虫虫
阅读(1329)
评论(0)
推荐(0)
公告