DELIMITER $$
DROP FUNCTION IF EXISTS amountInP $$
CREATE FUNCTION amountInP (euros INTEGER)
RETURNS INTEGER
BEGIN
SELECT amountInP.euros/166.386 AS 'Pessetes' ;
END $$
DELIMITER ;
SELECT amountInP(2000);
I'm doing this function and you're giving me the following error
#1415 - Not allowed to return a result set from a function
My idea was to pass a number on the screen and divide it by that amount