ALTER PROCEDURE [prc_******]
@obligateFour Varchar(50),
@obligateFive Varchar(50)
AS
BEGIN
select * from a
select * from b
end
public String getInsureDetail(String obligateFour,String obligateFive) throws UnsupportedEncodingException,Exception {
Connection conn = null;
ResultSet rs1 = null;
ResultSet rs = null;
CallableStatement proc = null;
try{
conn = new MSConnection().getConnection();
proc = conn.prepareCall("{call prc_bzdbbx_getinsuredetail(?,?)}");
proc.setString(1,obligateFour);
proc.setString(2,obligateFive);
rs1=proc.executeQuery();
while (rs1!=null&&rs1.next()){
.............
}
.................
proc.getMoreResults();
rs= proc.getResultSet();
while(rs!=null&&rs.next()) {
....................
}
}catch (Exception e) { e.printstacktrace(); throw new Exception(ChangeCode.utf8ToBase64(e.getMessage())); } finally { try { if (rs1 != null) { rs1.close(); } if (rs != null) { rs.close(); } if (proc != null) { proc.close(); } if (conn != null) conn.close(); } catch (sqlException e) { e.printstacktrace(); } }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。