Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
String sql = "select * from users where (email =? and password =?)";
Connection connection = pool.getConnection();
PreparedStatement pstmt = connection.prepareStatement(sql);
pstmt.setString(1, email);
pstmt.setString(2, password);
ResultSet result = pstmt.executeQuery();
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment