Multiple choice technology mainframe

Sqlcode foreign key constraint is

  1. 531

  2. 530

  3. 513

  4. 533

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

SQLCODE -530 in DB2 indicates a foreign key constraint violation. This error occurs when you try to insert or update a child row with a foreign key value that doesn't exist in the parent table, or when deleting a parent row that has dependent child rows.