dbTalk Databases Forums  

Inverse function of ODCINumberList ?

comp.databases.oracle.server comp.databases.oracle.server


Discuss Inverse function of ODCINumberList ? in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Spendius
 
Posts: n/a

Default Inverse function of ODCINumberList ? - 06-22-2010 , 09:31 AM






Hi,
The ODCINumberList function allows you to to:
SQL> select * from table(sys.odcinumberlist(1,2,9));

COLUMN_VALUE
------------
1
2
9

=> is there another function that would make the other
way around and take a tabular result set of a single column
to make a list of it ?, kind of:
SQL> select tabToList(rownum) from all_objects where rownum <5;

TABTOLI
----------
1, 2, 3, 4

Thanks...
Regards,
Spendius

Reply With Quote
  #2  
Old   
Michel Cadot
 
Posts: n/a

Default Re: Inverse function of ODCINumberList ? - 06-22-2010 , 10:08 AM






"Spendius" <spendius (AT) muchomail (DOT) com> a écrit dans le message de news:
b1b53aae-c02d-4218-a003-50b95eca82c7...oglegroups.com...
Quote:
Hi,
The ODCINumberList function allows you to to:
SQL> select * from table(sys.odcinumberlist(1,2,9));

COLUMN_VALUE
------------
1
2
9

=> is there another function that would make the other
way around and take a tabular result set of a single column
to make a list of it ?, kind of:
SQL> select tabToList(rownum) from all_objects where rownum <5;

TABTOLI
----------
1, 2, 3, 4

Thanks...
Regards,
Spendius

SYS_CONNECT_BY_PATH

Regards
Michel

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.