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!

How to use Oracle Table Type values in Select Statement.

user7981199Mar 5 2010 — edited Mar 5 2010
Hi,

I am fetching initial set of values into Oracle Table of Records Type and want to use list of values in the Select statement.

For example, try something like the following:

TYPE t_record IS RECORD (
ID TABLEA.ID%type,
NO TABLEA.NO%type,

);
v_record t_record;
TYPE t_table IS TABLE OF v_record%TYPE;
v_table t_table;

-- Code to populate the values in v_table here.

SELEC ID,NO, BULK COLLECT INTO <some other table variabes here> FROM TABLEA
WHERE ID IN v_table(i).ID;

I want to know how to use the values from Oracle Table Type in the Select Statement.
This post has been answered by Peter K on Mar 5 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2010
Added on Mar 5 2010
2 comments
2,818 views