Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is there a function to "de-aggregate" a csv string in Oracle ?

783956Jul 16 2010 — edited Jul 17 2010
Hello,

I'd like to turn the string

'7654, 7698, 7782, 7788'

into a list of values that I can use in the WHERE clause of a SELECT statement.

For instance,
select ename
  from emp
 where empno in (somemagicfunction('7654,7698,7782,7788'));
I know how to do it the "hard way". I'm trying to find out if there is an "easy" way.

Thank you for helping.

John.
This post has been answered by MichaelS on Jul 17 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2010
Added on Jul 16 2010
10 comments
3,336 views