I have two SQLite (also MySQL could be fine) databases with same table structures but different datas and I have to get all rows from one and check, one by one, if they’re exactly (same data) contained in the second one.
I need to do this for having a final yes/no/partial report (and in second step, insert in the second database the “no” and update the “partial”).
Anyone know if is there a “smart” method to do this?
If num_mismatch is not 0 you have mismatches. You can also change
COUNT(*)to output the IDs that don’t match. It’s also possible to useNOT EXISTSand return a bit faster if there are mismatches since it will stop checking after the first mismatch.