Oracle的包Package中可以有很多存储,可通过该包的总调入口在java中直接调用。

//java调用oracle的package代码
public boolean cal() throws java.lang.Exception {
          CallableStatement cstmt = null;
          String procedure = "{call G_IMPORT_CAL.g_entry(?,?,?) }";
          cstmt = conn.prepareCall(procedure);
          cstmt.setString(1,organkey);                   
          cstmt.setString(2,this.getT18_task_fac().getGranularity());        
          cstmt.setString(3,this.getT18_task_fac().getStatisticdate());
          cstmt.executeUpdate();
          cstmt.close();
        return true;
    }
    

 

相关文章:

  • 2022-12-23
  • 2021-04-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-06-05
相关资源
相似解决方案