请问哪个大狭知道java调用oracle存储过程能否加查询条件!
select * from where .. 比如上面的where 里的条件以下是我的java调用存储过程的代码,我想再加上查询条件,过滤下结果,谢谢大狭了
CallableStatement cstmt = null;
ResultSet rs = null;
String callSql = "{call proc_paylate_custom(?,?,?)}";
cstmt = this.getSession().connection().prepareCall(callSql);
cstmt.setString(1, insnum);
cstmt.setString(2, insuresortid);
//返回结果集合
cstmt.registerOutParameter(3, oracle.jdbc.OracleTypes.CURSOR);
cstmt.execute();
rs = (ResultSet) cstmt.getObject(3);
select * from where .. 比如上面的where 里的条件以下是我的java调用存储过程的代码,我想再加上查询条件,过滤下结果,谢谢大狭了
CallableStatement cstmt = null;
ResultSet rs = null;
String callSql = "{call proc_paylate_custom(?,?,?)}";
cstmt = this.getSession().connection().prepareCall(callSql);
cstmt.setString(1, insnum);
cstmt.setString(2, insuresortid);
//返回结果集合
cstmt.registerOutParameter(3, oracle.jdbc.OracleTypes.CURSOR);
cstmt.execute();
rs = (ResultSet) cstmt.getObject(3);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货