MySQL How to INSERT INTO [temp table] FROM [Stored Procedure]

前端 未结 5 1129
心在旅途
心在旅途 2020-12-03 13:32

This is very similar to question 653714, but for MySQL instead of SQL Server.

Basically, I have a complicated select that is the basis for several stored procedures.

5条回答
  •  佛祖请我去吃肉
    2020-12-03 14:08

    The problem is, Stored Procedures don't really return output directly. They can execute select statements inside the script, but have no return value.

    MySQL calls stored procedures via CALL StoredProcedureName(); And you cannot direct that output to anything, as they don't return anything (unlike a function).

    MySQL Call Command

提交回复
热议问题