I execute INSERT INTO Foo VALUES (a, b, c, ...), and sometimes one of a, betc. does not satisfy the foreign key constraint.
In this situation, I want the insertion not to run and not generate an error.
Can I do this in one expression, or do I need to do it separately IF EXISTS?
source
share