存储过程:
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();
Mysql实现循环插入数据
最新推荐文章于 2024-08-13 04:10:37 发布
