I'm inserting multiple entries to a table using a DAT file. How will I know what records are causing constraint failures (eg. duplicate constraint)? I'm using informix dbaccess to load the entries.
Here is a sample code of how I load it:
load from 'table.dat'
insert into table (
col1,
col2,
col3
);
This is the error I'm getting. It shows where from the sql code it fails but it doesn't tell me which specific row failed.
268: Unique constraint (test.tableconstraint) violated.
100: ISAM error: duplicate value for a record with unique key.
Error in line 1
Near character position 0