Mysql插入多条数据测试

--新建存储过程


create procedure doinsert3()
begin
declare i int;
declare j int;
set i = 0;
set j = 0;
while(i<=200) do
insert into reader_info(name,sex,birth,address,telcode) values(concat('测试',i),'男','1998-05-12','河北省',j);
set i = i+1;
set j = j+1;
end while;
end


--调用
call doinsert3(); 


--删除drop procedure doinsert3; 

  

posted @ 2019-10-08 12:53  深南大道  阅读(352)  评论(0编辑  收藏  举报