2012-09-13 166 views

回答

2
-- procedure #1 
create or replace procedure Proc1(p_RetValue out SomeDataType) 
is 
begin 
    -- any logic goes here 
    p_retValue := 5+5; -- for example. Let's assume that the SomeDataType is number; 
end; 

-- second procedure 
create or replace procedure Proc2 is 
    l_variable number; 
begin 
    Proc1(l_variable); -- the value 10 will be assigned to l_variable; 
end; 
+0

這就是它!謝謝。 :) –

+0

第二個過程需要一些修改: '創建或替換過程Proc2(l_variable out number) is begin Proc1(l_variable); - 值10將被分配給l_variable; end;' –

相關問題