明明只允许传一个参数,你非要传两个,不错见鬼了。resultset 100这是什么?

解决方案 »

  1.   

    SQL> declare
      2    dno begin_test.tdeptno;
      3  begin
      4    begin_test.test(dno);
      5  end;
      6  /PL/SQL procedure successfully completed
      

  2.   

    SQL> declare
      2    dno begin_test.tdeptno;
      3  begin
      4    begin_test.test(dno);
      5  end;
      6  /PL/SQL procedure successfully completed
      

  3.   

    yes,果然成功了,谢谢二位大虾相救
    但是如果在vb里面调用,变量又该怎么定义呢?望再加指教我的代码如下:
     mvarConn.ConnectionString = "dsn=dou;pwd=dou"
        mvarConn.Open
        strSql = "{call begin_test.test({deotno})}"
        Set objCommand = New ADODB.Command
        With objCommand
            Set .ActiveConnection = mvarConn
            .CommandText = strSql
            .CommandType = adCmdText
            .Execute
        End With
            MsgBox "成功"