MySQL 循环语句

本文总结了mysql常见的三种循环方式:while、repeat和loop循环。还有一种goto,不推荐使用。 1、while循环 delimiter // #定义标识符为双斜杠 drop procedure if exists test; #若是存在test存储过程则删除 create procedure test() #建立无参存储过程,名称为test begin decla
相关文章
相关标签/搜索