向MySQL中插入1000条测试数据--存储过程

来源:互联网 发布:mysql sql语句 编辑:程序博客网 时间:2024/05/22 13:51

create procedure insert_t() #创建一个储存过程
begin
set @a=2000001; #学号
set @e=182000000; #手机号
while @a<20000001 do
insert into t_student values(@a,’周润发’,’男’,@e);
set @a=@a+1;
set @e=@e+1;
end while;
end;
call insert_t();

0 0
原创粉丝点击