简体   繁体   中英

How to get the stored procedure result set value

I create a stored proc A that calls another proc B, which returns a list of the result set.

How I can use these result set values in my proc A as I have to use this result set value one by one to pass to other part of the proc A.

You can perform an INSERT INTO to insert the results of the stored procedure into a (temporary) table. You can then use a select statement to process these results.

INSERT INTO SomeTableThatMatchesTheSproc
EXEC YourStoredProcedure;

SELECT * FROM YourTable;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM