Syntax
<duplicates_clause> ::= IGNORE DUPLICATES | REJECT DUPLICATES | UPDATE DUPLICATES
IGNORE DUPLICATES |
The new line is not inserted. |
REJECT DUPLICATES |
The new line is rejected with an error message. |
UPDATE DUPLICATES |
The new line overwrites the existing line. |
Use
Use this syntax rule in a
DATALOAD command to specify how to proceed when loading data from a data stream, and a line with the same key as the new line already exists in the target file.If you do not make a specification,
REJECT DUPLICATES is the default.DATALOAD TABLE sqltravel00.customer
UPDATE DUPLICATES
customerid 01-04
name 06-16
zip 17-22
address 23-48
INFILE 'customer.data' FORMATTED