DB2 Error Code -8 – Integrity constraint violation in statement %s

In this post, you’ll learn about the DB2 error -8-Integrity constraint violation 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

-8 – Integrity constraint violation in statement %s

Reason for the Error & Solution

Attempted modification of a row that would cause a violation of referential integrity constraints. Make sure your mapping metadata declares your database’s foreign keys.