For example with this SP:
Code: Select all
delimiter //
DROP PROCEDURE IF EXISTS test3//
CREATE PROCEDURE `test3`(IN v1 INT, OUT v2 DOUBLE) READS SQL DATA
BEGIN
SET v2= v1 + 10.02;
select "hello", "there";
END;
//Code: Select all
mysql> call test3(27901, @v2);
+-------+-------+
| hello | there |
+-------+-------+
| hello | there |
+-------+-------+
1 row in set (0.00 sec)
Query OK, 0 rows affected (0.01 sec)According to http://dev.mysql.com/doc/refman/5.0/en/ ... procs.html
mysql SPs can return result sets.
Thanks in advance.