这是我写入的存储过程。在此proc中,“p_subjectid”是从前端传递的一组数字。Oracle错误ORA-22905:无法访问非嵌套表项中的行
PROCEDURE getsubjects(p_subjectid subjectid_tab,p_subjects out refCursor)
as
BEGIN
open p_subjects for select * from empsubject where subject_id in
(select column_value from table(p_subjectid));
--select * from table(cast(p_subjectid as packg.subjectid_tab))
END getsubjects;
这是我得到的错误。
Oracle error ORA-22905: cannot access rows from a non-nested table item OR
正如我在不同的岗位都看到了,我试图铸造“剧组(p_subjectid为packg.subjectid_tab)”中的注释给出below.But我得到另一个错误内表功能:ORA-00902: invalid datatype。
这是“subjectid_tab”的定义。
type subjectid_tab is table of number index by binary_integer;
任何人都可以告诉我什么是错误,我的程序有什么问题。