我得存储过程编译后状态已经为VALID了
就是执行时出错
请帮我看看
谢谢先

解决方案 »

  1.   

    试试
    declare
      t1 number;
      t2 varchar2(10);
    begin
      t1:=11;
      t2:='222';
      testp(t1,t2);
    end;
      

  2.   

    刚才的问题已经解决
    现在问题是我不知道怎样在
    pb中调用
    我得代码如下:结果报错跟在sql/plus里报错一样
    Int is_no =100
    String ls_test = 'thistest',ls_out
    DECLARE sp_name PROCEDURE FOR yzwl.testp
    @test1=100,@test2='ls_test',@ls_out;EXECUTE sp_name;
    If Sqlca.SqlCode <> 0 Then
     Messagebox(SqlCa.SqlErrText,String(SqlCa.SqlCode)+SqlCa.SqlErrText)
    End If
    FETCH sp_name INTO :ls_test;CLOSE sp_name;
    messagebox('',ls_test)
      

  3.   

    你有三个参数,
    用这个试试
    declare
      t1 number;
      t2 varchar2(10);
      t3 varchar2(20);
    begin
      t1:=11;
      t2:='222';
      testp(t1,t2,t3);或  testp(11,'222',t3);end;
      

  4.   


    谢谢这样可以了
    但是我用两个参数
    就是最后(test1 number,test2 in out varchar2)却不行
    是不是也要三个参数呢