I want to write query to database in Oracle stored procedure. I send to procedure array
TYPE NUMBER_ARRAY IS TABLE OF NUMBER;
in my query i want to limit result like that:
SELECT *
FROM TABLE T
WHERE ID IN
(SELECT * FROM TABLE(CAST(NUMBER_ARRAY AS TABLE)))
but it returns errors:
PLS-00642 ORA-22906