Connection conn= getSession().connection();
CallableStatement cs=null;
//指定调用的存储过程  
cs = conn.prepareCall("{Call PRO_PROCESSING_COMMON.GET_STR(?,?)}");  
//设置参数  
cs.setString(1, "TESTSTR");  
//这里需要配置OUT的参数新型  
cs.registerOutParameter(2, Types.VARCHAR);  
//执行调用  
cs.execute();    
//输入返回值 
System.out.println(cs.getString(2));

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
猜你喜欢
  • 2022-12-23
  • 2022-02-17
  • 2021-12-14
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
相关资源
相似解决方案