could just run the values through a SELECT first and see if you get anyhits...resultSet = stmt.executeQuery("select primaryKey where primaryKey=VALUE");if (!resultSet.next()){..do update}