--新建存储过程 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;