Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpmyadmin run mysql stored procedure but no output

I write a very simple stored procedure as below:

DROP PROCEDURE IF EXISTS GetAllTours;

DELIMITER // 

CREATE PROCEDURE GetAllTours() 

BEGIN 

SELECT * FROM tours; 

END // 

DELIMITER ;

When I use

CALL GetAllTours(); 

from SQL query to run this procedure, there is no output.

But if I run from >>Routines>>Execute, the same procedure, there will have output successfully.

Can anybody tell me how to run from SQL query and get the results?

like image 321
user3583479 Avatar asked Apr 29 '14 01:04

user3583479


1 Answers

You can just use this query: CALL GetAllTours

like image 63
Werdo Avatar answered Oct 22 '22 21:10

Werdo