In this post, you’ll learn about the DB2 error -9-Violation of unique index: 23000 Violation of unique index in statement %s and the reason why you are receiving the error message and how to fix it
How does this Error Message Looks like
-9 – Violation of unique index: 23000 Violation of unique index in statement %s
Reason for the Error & Solution
Duplicate values have been inserted into a column that has a UNIQUE constraint. It is the responsibility of the application to deal with prevention of insertion of duplicate values.