问题描述:
在理解用户变量和局部变量的时候,除了发生位置和生命周期,还有没有其他的理解方式?
解决思路:
delimiter //
create procedure test(in a int,in b int,out c int)
begin
set c=a*b;
select c;
end//
delimiter ;
call test(3,3,@d);
select c; #无法调用
select @d; #可以调用
drop PROCEDURE if exists test;
在第一节基础上 更新了函数和执行顺序:实操了字符数函数、时间函数、字段截取函数、interval函数等,除最后顺序实操因未导入数据库,导致无法执行