Mysql 在哪里可以找到存储过程输出?
我有一个存储过程,它将通过select子句显示一些消息。 此过程将在事件计划中执行,我想了解消息将存储在哪里Mysql 在哪里可以找到存储过程输出?,mysql,Mysql,我有一个存储过程,它将通过select子句显示一些消息。 此过程将在事件计划中执行,我想了解消息将存储在哪里 drop procedure if exists sp_tt; delimiter $$ create procedure sp_tt() begin select 'message'; -- where could I find this message ? end; $$ drop event if exists ent_tt; create event ent_tt on
drop procedure if exists sp_tt;
delimiter $$
create procedure sp_tt()
begin
select 'message'; -- where could I find this message ?
end;
$$
drop event if exists ent_tt;
create event ent_tt on schedule every 5 second
do
begin
call sp_tt();
end
$$
delimiter ;
在该过程中,您可以将值插入到表中,然后可以检查该表中的值或者使用
OUT
参数返回值,或者将过程更改为函数,并使用RETURN
返回值。是否有任何方法可以将过程消息写入文件?如常规日志或错误日志?