Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to return a table from Stored Procedure in MySql?

i found my answer in sql server at here, but my question is about in mysql. please help me

like image 872
ahoo Avatar asked Jan 18 '23 23:01

ahoo


1 Answers

well to create a stored procedure in mysql you do it like so...

delimiter //;
create procedure Foo()
BEGIN
Select * from videos;
END

See http://dev.mysql.com/doc/refman/5.0/en/create-procedure.html for additional details

like image 78
iamkrillin Avatar answered Jan 31 '23 02:01

iamkrillin