views:

44

answers:

2

Create simple stored procedure which returns resultset in mysql

+1  A: 

I think this - http://www.mysqltutorial.org/mysql-stored-procedure-tutorial.aspx should help you.

Ivan Stefanov
+1  A: 
DELIMITER $$

DROP PROCEDURE IF EXISTS `something`.`PName` $$
CREATE PROCEDURE `Something`.`PName` (cid INT)
BEGIN

  SELECT * FROM table;

END $$

DELIMITER ;
Svisstack