Skip to main content
tested that this actually works and updated post with dbfiddle example
Source Link
Jack Douglas
  • 40.2k
  • 15
  • 104
  • 177

You could try using select * from table(xmlsequence( myfunc() )) . In this case you get xml in columns.

Or try this example to extract field COLfields from your refcursor

select extractvalue(COLUMN_VALUE ,'/ROW/COL') from table( xmlsequence( cursor( select 1 COL from dual union all select 2 COL from dual) )) .

select extractvalue(column_value,'/ROW/FIRST_NAME') first_name
     , extractvalue(column_value,'/ROW/LAST_NAME') last_name
from table(xmlsequence(f()));

FIRST_NAME | LAST_NAME
:--------- | :--------
Donald     | Duck     
Mickey     | Mouse    

Here cursor(..) is equivalent of refcursor function.dbfiddle here

PS. Note about xml overhead.

PPS. Sorry if something wrong because this is my 1st post at this site.

You could try using select * from table(xmlsequence( myfunc() )) . In this case you get xml in columns.

Or try this example to extract field COL from your refcursor

select extractvalue(COLUMN_VALUE ,'/ROW/COL') from table( xmlsequence( cursor( select 1 COL from dual union all select 2 COL from dual) )) .

Here cursor(..) is equivalent of refcursor function.

PS. Note about xml overhead.

PPS. Sorry if something wrong because this is my 1st post at this site.

You could try using select * from table(xmlsequence( myfunc() )) . In this case you get xml in columns.

Or try this example to extract fields from your refcursor

select extractvalue(column_value,'/ROW/FIRST_NAME') first_name
     , extractvalue(column_value,'/ROW/LAST_NAME') last_name
from table(xmlsequence(f()));

FIRST_NAME | LAST_NAME
:--------- | :--------
Donald     | Duck     
Mickey     | Mouse    

dbfiddle here

PS. Note about xml overhead.

added 5 characters in body
Source Link

You could try using select * from table(xmlsequence( myfunc() )) . In this case you get xml in columns.

Or try this example to extract field COL from your refcursor

select extractvalue(COLUMN_VALUE ,'/ROW/COL') from table( xmlsequence( cursor( select 1 COL from dual union all select 2 COL from dual) )) .

. Here cursor(..) is equivalent of refcursor function.

PS. Note about xml overhead.

PPS. Sorry if something wrong because this is my 1st post at this site.

You could try using select * from table(xmlsequence( myfunc() )) . In this case you get xml in columns.

Or try example to extract field COL from your refcursor

select extractvalue(COLUMN_VALUE ,'/ROW/COL') from table( xmlsequence( cursor( select 1 COL from dual union all select 2 COL from dual) ))

. Here cursor(..) is equivalent of refcursor function.

PS. Note about xml overhead.

PPS. Sorry if something wrong because this is my 1st post at this site.

You could try using select * from table(xmlsequence( myfunc() )) . In this case you get xml in columns.

Or try this example to extract field COL from your refcursor

select extractvalue(COLUMN_VALUE ,'/ROW/COL') from table( xmlsequence( cursor( select 1 COL from dual union all select 2 COL from dual) )) .

Here cursor(..) is equivalent of refcursor function.

PS. Note about xml overhead.

PPS. Sorry if something wrong because this is my 1st post at this site.

added 5 characters in body
Source Link

You could try using select * from table(xmlsequence( myfunc() )) to. In this case you get xml in columns.

or thisOr try example to extract field COL from your refcursor

select extractvalue(COLUMN_VALUE ,'/ROW/COL') from table( xmlsequence( cursor( select 1 COL from dual union all select 2 COL from dual) ))

to extract field COL. Here cursor(..) is equivalent of refcursor function.

psPS. noteNote about xml overhead.

ppsPPS. sorrySorry if something wrong because this is my 1st post at this site.

You could try using select * from table(xmlsequence( myfunc() )) to get xml in columns

or this example

select extractvalue(COLUMN_VALUE ,'/ROW/COL') from table( xmlsequence( cursor( select 1 COL from dual union all select 2 COL from dual) ))

to extract field COL. Here cursor(..) is equivalent of refcursor function

ps. note about xml overhead

pps. sorry if something wrong because this is my 1st post at this site

You could try using select * from table(xmlsequence( myfunc() )) . In this case you get xml in columns.

Or try example to extract field COL from your refcursor

select extractvalue(COLUMN_VALUE ,'/ROW/COL') from table( xmlsequence( cursor( select 1 COL from dual union all select 2 COL from dual) ))

. Here cursor(..) is equivalent of refcursor function.

PS. Note about xml overhead.

PPS. Sorry if something wrong because this is my 1st post at this site.

added 283 characters in body
Source Link
Loading
Source Link
Loading