现有10W条数据,Access数据库保存 通过正常提取: 代码如下:<% Set conn= Server.CreateObject(“ADODB.Connection”) c&Server.MapPath(“db2.mdb”) conn.Open connstr Set rs = Server.CreateObject (“ADODB.Recordset”) sql = “Select * from people order by id desc” rs.Open sql,
MySQL创建存储过程批量插入10万条数据
存储过程
1、首先防止主键冲突,我们清空表。
TRUNCATE table A_student;
2、编写存储过程
delimiter ‘$’;
CREATE PROCEDURE batchInsert(in args int)
BEGIN
declare i int default 1;
start TRANSACTION;
while i <= args DO
insert into A_student(id,name) VALUES (i,