简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM