How to stop the "insert or update on table ...violates foreign key constraint"?

Viewed 6956

How to construct an INSERT statement so that it would not generate the error "insert or update on table ... violates foreign key constraint" in case if the foreign key value does not exist in the reference table?

I just need no record created in this case and success response.

Thank you

2 Answers
Related