Is there any way so we can return a table from a mySQL function?
Like we do on SQL SRV?
ALTER FUNCTION [dbo].[blablabla](
@grupo int,
@singular var
No, MySQL functions can only return column data types.
However, your function can insert results into a table of a known name—including a (temporary) one created within the function body; alternatively, procedures (but not functions) can generate resultsets that are sent to the client (e.g. by executing a SELECT
statement).