Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try (Connection conn = getConnection()){
- PreparedStatement ps = conn.prepareStatement("");
- ResultSet res = ps.executeQuery();
- while (res.next()) {
- }
- res.close();
- } catch (SQLException e) {
- e.printStackTrace();
- throw new RuntimeException(e.getMessage());
- }
Add Comment
Please, Sign In to add comment