I have a super huge table (300+ million rows) that I need to back up frequently. I used a backup table to do so. Currently, the backup table is pretty much behind the main table, so I want to update my backup table. I want to copy over rows that exist on the main table and don't exist on the backup table yet. (The purpose of this table is to do some reporting purposes). I realize that it will take forever if I do something like this:
insert into backuptable select all from uptodatetable where not in select all from backuptable
so, I guess it will be a good idea to do it in a batch of rows. However I have never used batch before so can you guys help me? thank you