现在的位置: 首页 > 综合 > 正文

MySql循环插入的存储过程

2013年11月05日 ⁄ 综合 ⁄ 共 122字 ⁄ 字号 评论关闭

create procedure testInsert()

begin

 declare i  int;

set i=1;

while i<10000000 do

insert into test(name) values(i);

set i=i+1;

end while;

end;

抱歉!评论已关闭.