首页 > 数据库技术 > 详细

mysql存储过程

时间:2018-12-12 12:51:44      阅读:134      评论:0      收藏:0      [点我收藏+]
MySql存储过程初识
1.创建存储过程
create procedure myproc()
begin
declare num int;
set num=1;
while num <= 10000000 do
insert into tbl_store_order_revoke_info12(id,shopRefuseCase,revokeCase) values(num, CONCAT(num ,‘@qq.com‘), MD5(num));
set num=num+1;
end while;
end;
2.调用存储过程
call myproc();
3.删除存储过程
drop procedure myproc ;
4.查询结果
select count(*) from tbl_store_order_revoke_info;
 

mysql存储过程

原文:https://www.cnblogs.com/MagicalFool/p/10107670.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!