mysql数据批量写入
时间:2021-03-02 12:29:40
收藏:0
阅读:0
今天实现数据批量插入,
看了https://blog.csdn.net/weixin_42796152/article/details/107931768 《基于python,pandas,pymysql 将数据批量高效写入mysql数据库(保证可以用的那种)》的程序和自己编写的
insertMany(self,table, attrs, values),思路均是利用 cur.executemany(sql,values) 其中sql为 insert into tableName (colName1,colName2,...) values(%s,%s,...)
评论(0)