函数调用:select 函数名(参数);
函数返回值赋值:
set 变量名 = (select 函数名(参数));
select 函数名(参数) into 变量名;
示例:
自定义函数内容
select test4(5) into aa; set bb = (select test4(10)); select aa,bb;
标签:aa,函数,自定义,into,mysql,select,赋值 From: https://www.cnblogs.com/luna-hehe/p/17783078.html