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
我怎樣才能解決這個問題?