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
Potatooo
  • 57
  • 2
  • 10

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,564
  • 2
  • 13
  • 16