使用存储过程实现循环插入100条记录时间:2022-05-29 07:09:55 ? 1 2 3 4 5 6 7 8 9 10 11 mysql> delimiter $$ mysql> create procedure p3() -> MODIFIES SQL DATA -> BEGIN -> set @i=0; -> set @max=100; -> while @i<@max do -> insert into user values (@i); -> set @i = @i + 1; -> end while; -> end $$