Guest User

Untitled

a guest
Apr 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. PreparedStatement ps = getConnection().prepareStatement("UPDATE PRODUCTS SET PRICE = ?, SET STOCK = ? WHERE SOURCE_ID = ?");
  2. ps.setDouble(1, newPrice);
  3. ps.setString(1, String.valueOf(newStock));
  4. ps.setString(3, id);
  5. ps.executeUpdate();
Add Comment
Please, Sign In to add comment