0

Aside from cursor what function can I use to hold multiple columns and rows?

Here is my sample query

With a as (
     select statement
    ), as b (
     select statement
    )

I want to put this in one variable or anything that can hold the return columns/rows

select a.column1 , b.column2, b.column2 
from a , b
a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
Potatooo
  • 47
  • 9

1 Answers1

0

It sounds like what you want is ... a table!? But assuming that's problematic, you could use a table variable or temp table. See: Does Oracle have an equivalent of SQL Server's table variables?

Community
  • 1
  • 1
Steve Lovell
  • 2,519
  • 2
  • 11
  • 16