"{call queryProV(?)}"); cstmt.setInt(1, 2); rs=cstmt.executeQuery(); while(rs.next()){ System.out.println("id:"+rs.getInt(1)+"||name:"+rs.getString(2)); } }catch(Exception e){e.printStackTrace();} finally{ if(rs!=null){ rs.close(); } if(cstmt!=null){ cstmt.close(); } if(conn!=null){ conn.close(); } } } public void testDel() throws SQLException{ |