Django 批量插入数据(create)

mac2022-06-30  105

使用 QuerySet.bulk_create

createList=[] for d in data: createList.append(OJB(*d)) OBJ.objects.bulk_create(createList)

转载于:https://www.cnblogs.com/HeJD/p/8702025.html

相关资源:Django 批量插入数据的实现方法
最新回复(0)