DB2 | SQL*Loader Options | Result |
RESUME NO or no RESUME clause | INSERT | Data loaded only if table is empty. Otherwise an error is returned. |
RESUME YES | APPEND | New data is appended to existing data in the table, if any. |
RESUME NO REPLACE | REPLACE | New data replaces existing table data, if any. |
A description of the DB2 syntax follows.
If the tables you are loading already contain data, you have three choices for the disposition of that data. Indicate your choice using the RESUME clause. The argument to RESUME can be enclosed in parentheses.
RESUME { YES | NO [ REPLACE ] }
where:
YES | Appends the new rows to rows already in the table. |
NO | Requires the table to be empty before loading. An error message results if the table contains rows and the run is terminated. This is the default. |
NO REPLACE | Deletes any data in the table before loading new data. Thus, the new data will replace the old. This argument requires that the username invoking SQL*Loader have DELETE privilege on the table. You cannot recover the data that was in the table before the load, unless you saved it using Export or something comparable. |