Oracle error ORA-22905: cannot access rows from a non-nested table item

后端 未结 5 918
忘了有多久
忘了有多久 2020-12-11 16:35

here\'s the stored procedure i wrote.In this proc \"p_subjectid\" is an array of numbers passed from the front end.

PROCEDURE getsubjects(p_subjectid subject         


        
5条回答
  •  既然无缘
    2020-12-11 17:14

    You have to declare the type on "the database level" as ammoQ suggested:

    CREATE TYPE subjectid_tab AS TABLE OF NUMBER INDEX BY binary_integer;
    

    instead of declaring the type within PL/SQL. If you declare the type just in the PL/SQL block, it won't be available to the SQL "engine".

提交回复
热议问题