开发者

Call sp within another sp

开发者 https://www.devze.com 2023-01-16 22:27 出处:网络
I have an sp named \'FolderSttructure\'.It returns t开发者_C百科he following result - FolderID 1 2 3

I have an sp named 'FolderSttructure'.It returns t开发者_C百科he following result -

FolderID

1 2 3 4

I have to call the above sp 'FolderSttructure' inside another sp named 'SearchFolder' and insert the result of first sp in to a temperory table.

Is it possible?

If yes how can we do that?


Yse, you can do it like this:

CREATE TABLE #ATempTable
(
FolderID INTEGER
)

INSERT #ATempTable
EXECUTE FolderSttructure
...
0

精彩评论

暂无评论...
验证码 换一张
取 消