Created
November 5, 2017 22:06
-
-
Save dusanstanojeviccs/d426fa102ea773c0370672a64caa0d07 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
public void delete(int id) throws SQLException { | |
PreparedStatement preparedStatement = database.getConnection().prepareStatement("delete from books where id = ?"); | |
preparedStatement.setInt(1, id); | |
preparedStatement.execute(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment