T-Sql How to return a table from a storedproc in another stored proc

后端 未结 3 600
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 13:37

I would like to do the following. Basically have a stored procedure call another stored procedure that returns a table. How is this done?

    ALTER PROC [GE         


        
3条回答
  •  感情败类
    2021-02-05 14:18

    Maybe your example isn't really representative, but the first question I'd have have is, do you really need to make this two procedures, at the cost of greater complexity? Decomposition like this is somewhat of an antipattern with SQL. (Although some will disagree, but I've seen this discussed with majority agreement here on SO.)

提交回复
热议问题