MySQL Forums
Forum List  »  Stored Procedures

Re: Error Code: 1172. Result consisted of more than one row INSIDE A FUNCTION
Posted by: Nestor Pedraza
Date: March 05, 2022 10:46PM

Sorry I've posted a wrong code . This is the one IT's not working . DOER is the date field in the table


CREATE DEFINER=`myNestor`@`%` FUNCTION `EURO`(FEC DATE ) RETURNS decimal(11,2)
BEGIN
SET @TODAY=FEC;
SELECT EURO FROM DATA.IYM WHERE DOER=@TODAY INTO @RESULT ;
RETURN @RESULT ;
END

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Error Code: 1172. Result consisted of more than one row INSIDE A FUNCTION
88
March 05, 2022 10:46PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.