1
当我尝试创建这样一个存储过程:在Oracle中创建一个存储过程抱怨无效的变量声明
create or replace
procedure USR_Trial
(auth out usrr.DEPARTMENT
)
AS
BEGIN
select authority_id
into auth
from usrr where user_id='G68EF610';
END USR_Trial;
我收到以下错误:
Error(2,1): PLS-00488: invalid variable declaration: object 'USRR.DEPARTMENT' must be a type or subtype
我怎样才能解决这个问题?