Type an executeUpdate with two placeholders
Type an executeUpdate with two placeholders
Answer
ps.setDouble(1, 75000.00); ps.setInt(2, 42); int rows = ps.executeUpdate();
executeUpdate returns the count of affected rows (0 if no rows matched). Use it for INSERT, UPDATE, DELETE — never executeQuery for modification statements.