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();

posted on 2018-12-05 17:37  HelonTian  阅读(427)  评论(0编辑  收藏  举报