Hi everybody!
I have a little problem with one function. What i want is to make a function
which returns me numbers from 0 to the number that receives the function.
Example: if the function receives the number 4, it will return 0,1,2,3 and
4.
numbers
0
1
2
3
4
The problem is that it makes me a error.
CREATE OR REPLACE FUNCTION `cantidad`(n integer) RETURNS INTEGER AS
DECLARE
i integer;
BEGIN
FOR i IN 0..n LOOP
RETURN NEXT i;
END LOOP;
RETURN;
END;
Thank you very much
--
View this message in context:
http://www.nabble.com/function-procedure-error%21-tp15875760p15875760.html
Sent from the MySQL - General mailing list archive at Nabble.com.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]