mysql 存储过程游标的使用及存储过程调用存储过程
存储过程调用存储过程:
其实很简单。。。如果不带返回值
直接在存储过程中调用:call 存储过程名称(参数)
如果有返回值
call generatorAuthorCode(@c); select @c into authorCode;
游标使用:
DECLARE cur_name CURSOR FOR select field from table_name ; #我的理解
原创
2018-01-12 14:55:17 ·
483 阅读 ·
0 评论