java调用oracle存储过程
有返回值的out并print出来的示例?给偶一个。万分感激,如能把有out的存储过程也给我的话就太太太感谢了!!!![email protected]

解决方案 »

  1.   

    http://www.blogjava.net/TrampEagle/archive/2005/12/13/23605.aspx
    http://developer.51cto.com/art/200509/2849.htm
      

  2.   

    cstmt = conn.prepareCall("{call doKc(?,?,?)}");
    //第一个是整型输出参数, 第二个是字符输出参数, 
    cstmt.registerOutParameter(1,Types.INTEGER);
    cstmt.registerOutParameter(2,Types.VARCHAR);
    cstmt.setFloat(3,1.234);
    cstmt.executeQuery();
    RecordCount = cstmt.getInt(1);  //获取返回参数
    _errorInf = cstmt.getString(2);
      

  3.   

    非常感谢
    whirlsun(whirlsun) 
    已搞定。也谢谢
    operfume(橘子香水)