Oracle 错误:PLS-00320:此表达式类型的声明不完整或格式不正确

Oracle 错误:PLS-00320:此表达式类型的声明不完整或格式不正确,oracle,plsql,cursor,procedure,Oracle,Plsql,Cursor,Procedure,我犯了一个错误 PLS-00320:此表达式类型的声明不完整或格式不正确 初始化游标时 CREATE OR REPLACE PROCEDURE Test AS CursorP PKG_NAME.cur_ref; test CursorP%ROWTYPE; <<-------PLS-00320: the declaration of the type of this expression is incomplete or malformed BEGIN procedureCall(C

我犯了一个错误

PLS-00320:此表达式类型的声明不完整或格式不正确

初始化游标时

CREATE OR REPLACE PROCEDURE Test
AS
CursorP PKG_NAME.cur_ref;
test  CursorP%ROWTYPE; <<-------PLS-00320: the declaration of the type of this expression is incomplete or malformed
BEGIN
procedureCall(CursorP);
loop
    fetch CursorP into test  
    exit when test  %notfound;
end loop;
CLOSE Cursor;
END
创建或替换程序测试
作为
CursorP PKG_NAME.cur_ref;

测试游标%ROWTYPE;
cur\u ref
是如何定义的?如果它是一个弱类型的ref游标作为名称,那么call和error-suggest就没有固定的rowtype——这是点的一部分——因此这是行不通的。也许,如果您添加一些关于您正在尝试做什么以及您正在使用什么的上下文,我们可能会有一些其他建议。