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!

Newbie Question: Array in PL/SQL SP

559589Apr 18 2007 — edited Apr 19 2007
Hi Oracle Gurus,

This is what I need to accomplish in algorithm and just wondring how to do it in PL/SQL Stored Procedure:

name_array = { 'ABC*', 'CDE*', 'EFG*'...... }
i = 1
FOR EACH MEMBER OF ARRAY name_array
SQL = 'SELECT * FROM ALL_TABLES WHERE table_name like ''' || name_array[i] || ''';
i := i+1;
END FOR;


Your inputs are really appreciated.

ALEX
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2007
Added on Apr 18 2007
21 comments
875 views