How can I avoid duplicate results on the screen when I execute a stored procedure?
This is the procedure:
CREATE PROCEDURE 'my_procedure'()
BEGIN
declare fecha_aux varchar(30);
set fecha_aux = Date_format(now(),'%M %d %Y %h:%i:%s %p');
--Aqui imprimo el texto en la pantalla
select "%1! SP_PASO_HISTORICO -> Borrado de tablas temporales ", @fecha_aux;
END
Exit:
mysql> call my_procedure;
+--------------------------------------------------------+-------------------------------+
| %1! SP_PASO_HISTORICO -> Borrado de tablas temporales | @fecha_aux |
+--------------------------------------------------------+-------------------------------+
| %1! SP_PASO_HISTORICO -> Borrado de tablas temporales | November 24 2017 01:35:44 PM |
+--------------------------------------------------------+-------------------------------+
1 row in set (0.00 sec)
Why do 2 messages appear on the screen? How can I avoid the first one? I just want it to appear:
%1! SP_PASO_HISTORICO -> Borrado de tablas temporales | November 24 2017 01:35:44 PM |
Is this possible?