2009-04-23 108 views
0

有任何錯誤的參數或參數類型誰能幫我解決這個錯誤。它在我嘗試第一個程序時起作用,但當我輸入兩個數字時不起作用。有任何想法嗎?PLS-00306:打電話給

create or replace package LE2_P1 
is 
procedure GENERATE_MULTIPLICATION_TABLE(p_axis_both in number); 
procedure GENERATE_MUTLIPLICATION_TABLE(p_axis_x in number, p_axis_y in number); 
end LE2_P1; 
/

create or replace package body LE2_P1 
as 
procedure GENERATE_MULTIPLICATION_TABLE(p_axis_both in number) 
is 
bb number := 1; 
eb number := p_axis_both; 
begin 
for xyz in 1 .. eb loop 
for xyx in 1 .. eb loop 
dbms_output.put(CHR(9) || to_char(xyz * (bb + xyx - 1))); 
end loop; 
dbms_output.put_line(CHR(13) || CHR(10)); 
end loop; 
end GENERATE_MULTIPLICATION_TABLE; 
procedure GENERATE_MUTLIPLICATION_TABLE(p_axis_x in number, p_axis_y in number) 
is 
bb number := p_axis_x; 
eb number:= p_axis_y; 
begin 
for xyz in 1 .. eb loop 
for xyx in 1 .. eb loop 
dbms_output.put(CHR(9) || to_char(xyz * (bb + xyx - 1))); 
end loop; 
dbms_output.put_line(CHR(13) || CHR(10)); 
end loop; 
end GENERATE_MUTLIPLICATION_TABLE; 

end LE2_P1; 
/

declare 
x number := 5; 
y number := 3; 
begin 
LE2_P1.GENERATE_MULTIPLICATION_TABLE(x,y); 
end; 
/

回答

1

帶有兩個參數的名字的步驟typoed:MU T L IPLICATION

+0

很好發現:) – 2009-04-23 16:38:13

1

的OracleParameter [] PR =新的OracleParameter [20]; pr [1] = new OracleParameter(「IN_BILL_COMPCD_C」,OracleType.VarChar); pr [1] .Value = IN_BILL_COMPCD_C; pr [1] =新的OracleParameter(「IN_BILL_BRCD_C」,OracleType.VarChar); pr [1] .Value = IN_BILL_BRCD_C;

兩個參數在單個值中傳遞。這就是爲什麼會出現這個錯誤。