data中中几千条数据,如果一条一条的获取再写入SQL的库中,操作太频繁了,有没有数据库引擎之类的方法,批量写入呢?
收起
可参考 使用python批量插入数据到mysql的三种方法_三生万物-的博客-CSDN博客_python 将list写入mysql 自动化单条insert# -*- coding:utf-8 -*-import timefrom pymysql import *# 装饰器,计算插入50000条数据需要的时间def timer(func): def decor(*args): start_time = time.time() func(*args) end_ti... https://blog.csdn.net/weixin_42703149/article/details/85120029
报告相同问题?