Trying to wrap my head around this. I am posting data to a SQLite db and would like to insert records if they do not exist, and update existing records if certain requirements are met (basically if one field has changed values). Not sure exactly how to do something like this. I've seen examples using ON DUPLICATE KEY, but that basically updates records when there is a duplicate. I need to also check for a change before updating.
Any ideas?