Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to suppress mysql stored procedure output?

Tags:

mysql

so if i have a stored procedure that contains selects how to suppress the results from these selects from appearing ?

for example if i have

create procedure xyz
begin    
    select * from table_name #I don't want this to be seen in the console.    
    do other stuff     
end;
like image 244
Taher Galal Avatar asked Feb 03 '15 13:02

Taher Galal


Video Answer


1 Answers

You can set the required params into variables like

SET @foo = (SELECT foo_coloumn FROM foo_table);

This will suppress the select result set.

like image 123
Ajmal M Sali Avatar answered Oct 07 '22 04:10

Ajmal M Sali