prepared statement update

Solutions on MaxInterview for prepared statement update by the best coders in the world

showing results for - "prepared statement update"
Chiara
04 May 2017
1   PreparedStatement statement = 
2     connection.prepareStatement("UPDATE CUSTOMERS SET FNAME = ?, LNAME = ? WHERE ID = ?")) {
3  statement.setString(1, customer.getFirstName());
4  statement.setString(2, customer.getLastName());
5  statement.setInt(3, customer.getId());