Can a MySql stored procedure / function return a table without the use of temp table?
Creating the following procedure
CREATE PROCEDURE database.getExamples()
SELECT * FROM examples;
and later calling it with
CALL database.getExamples()
displays the example table - just as expected - but the following doesn't seem to be possible:
SELECT * FROM CALL database.getExamples()
Is it possible at all to return a query result table from a stored procedure / function, and if so - how?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…