mysql数据批量写入

今天实现数据批量插入,

看了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,...)
posted @ 2021-03-02 00:37  ggggzxx  阅读(504)  评论(0)    收藏  举报