存储过程:
1、MySQL数据库存储过程讲解与实例
https://blog.csdn.net/weixin_41177699/article/details/80553643
2、MySQL中的存储过程(详细篇)
https://blog.csdn.net/weixin_45970271/article/details/124180709
函数
1、mysql自定义函数详解
https://blog.csdn.net/hyy147/article/details/102900454
2、MySQL自定义函数用法详解-复合结构自定义变量/流程控制
总结:
MySQL 存储过程、自定义函数、事务、保存点 和 流程控制( if 、case 、loop、leave、iterate 、repeat 和 while )的语法、创建和使用
https://xiaojin21cen.blog.csdn.net/article/details/105596615
循环语句: