I'm triying to upload some files with incremental data. The tabla has a PK (_id), but this _id could appears in many files with different values.
I'd like to load massively the files with a REPLACE INTO or similar, if the register doesn't exist then it must be inserted, but if the register already exists, it must check if the field updated is later than the other one or not, and if it is, replace it, and if it is not, ignore. Is this possible?
I have tried to do several tests with REPLACE and UPDATE or create a temporary table but without results