2009-04-23 15 views
0

このエラーで私を助けることができます。私は2つの数字を入力するとき、私は最初の手順を試みるが、2番目の手順は試していないときに動作します。何か案は?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

よく尋ねられます:) –

+0

私は同じエラーに直面しています。誰か見てみてください。 http://stackoverflow.com/questions/950404/oracle-net-error-wrong-number-or-type-of-arguments – aliensurfer

1

のOracleParameter [] PR =新規のOracleParameter [20]。 pr [1] =新しいOracleParameter( "IN_BILL_COMPCD_C"、OracleType.VarChar); pr [1]。値= IN_BILL_COMPCD_C; pr [1] =新しいOracleParameter( "IN_BILL_BRCD_C"、OracleType.VarChar); pr [1]。値= IN_BILL_BRCD_C;

2つのパラメータが単一の値で渡されました。そのため、このエラーが発生します。

関連する問題