http://www.yesky.com/SoftChannel/72342371945283584/20020423/1608282.shtmlCallableStatement  void registerOutParameter(int int0, int int1) throws SQLException;
  void registerOutParameter(int int0, int int1, int int2) throws SQLException;
  void setBoolean(int int0, boolean boolean1) throws SQLException;
  void setByte(int int0, byte byte1) throws SQLException;
  void setShort(int int0, short short1) throws SQLException;
  void setInt(int int0, int int1) throws SQLException;
  void setLong(int int0, long long1) throws SQLException;
  void setFloat(int int0, float float1) throws SQLException;
  void setDouble(int int0, double double1) throws SQLException;
  void setBigDecimal(int int0, BigDecimal bigDecimal) throws SQLException;
  void setString(int int0, String string) throws SQLException;
  void setBytes(int int0, byte[] byteArray) throws SQLException;
  void setDate(int int0, Date date) throws SQLException;
  void setTime(int int0, Time time) throws SQLException;
  void setTimestamp(int int0, Timestamp timestamp) throws SQLExcepti

解决方案 »

  1.   

    try
    {
    CallableStatement cstmt = conn.prepareCall("{call 存储过程(?,?,?)}");
    cstmt.setString(1,"输入"); cstmt.registerOutParameter(2,java.sql.Types.VARCHAR);
    cstmt.registerOutParameter(3,java.sql.Types.VARCHAR); cstmt.execute(); String 输出1 = cstmt.getString(2);
    String 输出2 = cstmt.getString(3); //System.out.println("strParas[0]:'"+strParas[0]+"',strParas[1]:'"+strParas[1]+"'"); cstmt.close();
    }
    catch(Exception ex)
    {
    System.out.println(ex.toString());
    return;
    }
      

  2.   

    直接用jdbc我知道,但是proceduredataset这个组件不是这么用的,它也没proceduredataset有用jdbc,我就想问问proceduredataset是怎么用的