以下是mySql数据库存储过程打印参数的写法,希望大家了解和指正:
相对Oracle数据库的 dbms_output.put_line();
在mysql里面的写法是 select 参数名; 形式.
举个栗子:
drop procedure if exists 'pro_printParam';
create procedure()
begin
declare @test_num int;
select count(1) into test_num from table_name;
select @test_num;
end;