posted 12 years ago
Hi
Am trying to insert data in Batch using int[] updateCounts = stmt.executeBatch();. In case If I have duplicate records it's not inserting original records also simply throwing exception.
Am expecting, In case I have 10 records 2 or duplicate, am expecting remaining 8 to be inserted.
Exception
09/10/12 18:17:32 java.sql.BatchUpdateException: error occurred during batching: ORA-00001: unique constraint (Schema) violated