返回游标?自定义类型?还是临时表?
那java怎样获取返回的数据啊??

解决方案 »

  1.   

    execute('存储过程名称',new CallableStatementCallback() {
    public Object doInCallableStatement(CallableStatement cs)
    throws SQLException, DataAccessException {
       //定义过程输出参数类型
       cs.registerOutParameter(1, Types.VARCHAR);
       cs.registerOutParameter(2, Types.VARCHAR);
       cs.execute();
       //获取过程输入参数
       cs.getString(1));
       cs.getString(2));
       return 返回你要的信息;
    }
    });
    记着,给分哦!
      

  2.   


    psmt = conn.prepareCall({call pres(?,?,?)});
    psmt.setInt(1,111);
    psmt.setString(2,"xxxx");
    psmt.registerOutParameter(3, Types.VARCHAR);
    psmt.executeUpdate();// 返回的数据
    String result = psmt.getString(3);
      

  3.   

    http://www.blogjava.net/icewee/archive/2011/04/18/353198.html
    应该能满足你的需要。
      

  4.   

    http://topic.csdn.net/u/20120331/09/b228b71e-acf8-43d7-9acd-d1266c9eee9f.html