MySQL创建存储过程并循环添加记录方法详解

本文主要介绍了mysql实现创建存储过程并循环添加记录的方法,涉及基本的mysql存储过程创建、调用相关操作技巧,需要的朋友可以参考下,希望能版主到大家。

先创建,然后调用:

-- 创建存储过程  DELIMITER;//  create procedure myproc()  begin  declare num int;  set num=1;  while num <p>相关推荐:<br></p><p><a href="http://www.php.cn/mysql-tutorials-383128.html" target="_self">详细讲解mysql的存储过程、游标 、事务</a></p><p><a href="http://www.php.cn/mysql-tutorials-383128.html" target="_self">详细讲解mysql的存储过程、游标 、事务</a></p><p><a href="http://www.php.cn/mysql-tutorials-383128.html" target="_self">详细讲解mysql的存储过程、游标 、事务</a></p>

© 版权声明
THE END
喜欢就支持一下吧
点赞10 分享