您的位置:首页 > 数据库 > MySQL

Mysql实现循环插入数据

2014-05-03 11:59 387 查看
存储过程:

create procedure myproc()

begin

declare num int;

set num=1;

while num < 100 do

insert into user(account,password) values("king", "123");

set num=num+1;

end while;

end

调用存储过程:call myproc();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: