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!

Input Comma Separated String and Output a Resultset. How to ?

TelluriumDBAMar 12 2014 — edited Mar 13 2014

Hi.

Consider the following table

StudentID INT,

StudentName varchar2(200)

Address varchar2(500)

I need to write a stored procedure, which inputs a student ID list as a Comma Separated value list, and then output the StudentName and Addresses of those students.

I am kind of having an idea of the pesudo code;

first i need to decode the comma separated values (and put them into a collection ?)

and then open a cursor and query the array with the student table to get the relevant data.

Could you please let me know what would be the correct pl/sql block to do this ??

Thanks !

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2014
Added on Mar 12 2014
4 comments
3,881 views