I have a stored procedure that returns 4 result sets. The results sets have lots of columns.
What's the best way to create a table out of each result set? The data types and schema in the tables should be the same as the ones from the result sets.
I know I can do this to create a table from a selection:
CREATE TABLE TABLE_NAME
AS SELECT * FROM USERS
So is there a way to select a result set from a stored procedure execution??