delimiter //
create procedure myproc()
begin
declare num int;
set num=1;
while num < 10 do
insert into t_tag(tag_name, tag_desc) values(concat("tag", num), concat("tag", num)); set num=num+1;
end while;
end//
最后
以上就是俊秀裙子最近收集整理的关于MySQL使用存储过程循环插入数据的全部内容,更多相关MySQL使用存储过程循环插入数据内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复