I tried to do so, but it returns me in columns not rows
SELECT 386 ,417,420,421,422,423 ... from dual
I tried to do so, but it returns me in columns not rows
SELECT 386 ,417,420,421,422,423 ... from dual
Try this:
select column_value col1 from
table(sys.odcinumberlist((386) ,(417),(420),(421),(422),(423)))
use union all
SELECT 386 from dual
union all
SELECT 417 from dual
union all
SELECT 420 from dual
union all
SELECT 386 from dual
You can use UNION
or UNION ALL
as a work around to get the desired output.
SELECT 386 from dual
UNION ALL
SELECT 417 from dual
UNION ALL
SELECT 420 from dual
...