I am trying to call a function from another function as below, but it is throwing an error as mentioned below
CREATE DEFINER=`root`@`localhost` FUNCTION `all_function`(runInstance double) RETURNS int(11)
BEGIN
CALL al_compareData(runInstance);
RETURN 1;
END
error thrown is
Error Code: 1305. PROCEDURE als.al_compareData does not exist
I am trying to call a function, but MySQL in turn is searching for a procedure.
How to call a function from another function