Quote:
Originally Posted by redwolf
Right, I'm aware of this. My question is does the data in the file overwrite the changes in the table if you load the file into the same table at a later time using db2 load?
|
REPLACE INTO overwrites the changes. To make it clear, REPLACE options removes all rows from the table and inserts the rows from the file.
INSERT appends data to the table. If a primary or unique key violation is found, the row is deleted from the table. You can capture the deleted rows and save in an EXCEPTION table.
Read the LOAD command description in the manuals.