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!

Select filtering on table of varchar2

699809May 5 2009 — edited May 5 2009
Hi, i'm trying to do this in a PL/SQL procedure:
SELECT mytbl.id, mytbl.val
FROM mytbl
WHERE mytbl.id IN names

where names is declared as:
TYPE type_names IS TABLE OF VARCHAR2 INDEX BY pls_integer;
names type_names;

I get error "table or view not exists"

I have tryed also with "... IN TABLE(names)" and i get "cannot access rows from a non-nested table item".

Can anyone help me?
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2009
Added on May 5 2009
9 comments
3,440 views