Created
August 30, 2016 10:22
-
-
Save r-winkler/6f7e7ce6eac2ec8fba7236ed0665b94b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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