MySQL 批量写入

delimiter ;;
create procedure idata()
begin
declare i int ;
set i=1;
while (i <= 100000) do
insert into customer values (i,1,'ELON','TIAN','SCOTT@163.CN',11,11,'2018-12-05 10:35:44','2018-12-05 10:35:44');
set i = i+1;
end while;
end;;
delimiter ;

call idata();

原文地址:https://www.cnblogs.com/elontian/p/10072256.html