Guest User

Untitled

a guest
Jun 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. try (Connection conn = getConnection()){
  2. PreparedStatement ps = conn.prepareStatement("");
  3. ResultSet res = ps.executeQuery();
  4. while (res.next()) {
  5. }
  6. res.close();
  7. } catch (SQLException e) {
  8. e.printStackTrace();
  9. throw new RuntimeException(e.getMessage());
  10. }
Add Comment
Please, Sign In to add comment