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 $$
最后
以上就是酷炫大叔最近收集整理的关于使用存储过程实现循环插入100条记录的全部内容,更多相关使用存储过程实现循环插入100条记录内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复