I did your solution. I created a varray like this: TYPE LIST_IDS IS TABLE OF INT INDEX BY BINARY_INTEGER, but when I try to use in a sql statement SELECT appears an oracle error cannot access row in nested table. I use oracle 11g and I read that you can use a varray declare in plsql to sql statement.