SQL Server - Selectively inserting fields into temp table

后端 未结 3 1423
独厮守ぢ
独厮守ぢ 2021-01-15 16:34

I am executing a SP within a SP. The SP returns say 10 params. I am interested in only 5 of them. How do I insert only these 5 into the temp table.

The code I have s

3条回答
  •  独厮守ぢ
    2021-01-15 17:01

    Put the result of getDetails into a tablevar that contains all of the return values, then do your insert off of the additional table.

    You might also check out this site for more information on how to share data between stored procedures.

提交回复
热议问题