Knut, IIRC, during the delete phase of a load command, only unique key violations are deleted.
After load, SET INTEGRITY has to be run on a table that has check constraints and referential constraints. By specifying an exception table, the constraint violating rows are deleted from the main table and placed in the exception table. If no exception table is specified, the table continues in the check pending status.
Please correct me if I am wrong.
Thanks
Sathyaram
Quote:
|
Originally Posted by stolze
Other constraint violations also cause rows to be deleted. For example, if you have a column with "CHECK ( col IN ('A', 'B', 'C') )", then DB2 must delete the row if the value in such a column is 'D'. Otherwise, you would have inconsistencies in the database.
|