mysql function to return a table

前端 未结 1 1291
野性不改
野性不改 2020-12-21 00:25

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         


        
相关标签:
1条回答
  • 2020-12-21 00:55

    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).

    0 讨论(0)
提交回复
热议问题