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

后端 未结 5 919
忘了有多久
忘了有多久 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:22

    This is the good solution. You cannot use a table(cast()) if the type that you cast is in the DECLARE part of the pl/sql block. You REALLY need to use CREATE TYPE my_type [...]. Otherwise, it will throw the "cannot fetch row[...]" exception.

提交回复
热议问题