Is there any way to use a local table type into IN clause at SELECT statement without specifing index of table type?
DECLARE
TYPE temp_rec_TYPE IS RECORD (
n_temp_id NUMBER
);
TYPE temp_tab_TYPE IS TABLE OF temp_rec_TYPE INDEX BY PLS_INTEGER;
temp_tab temp_tab_TYPE;
n_temp_id2 NUMBER;
BEGIN
temp_tab(1).n_temp_id := 1;
FOR temp_rec IN (SELECT * FROM example_table WHERE id IN temp_tab)
LOOP
NULL;
END LOOP;
END;
Executed return 'PLS-00382: expression is of wrong type'