I'm using MySQL 5.5 with a complex schema that has foreign key constraints.
I want to execute multiple update and delete SQL statements.
After a subset of these statements have executed there may be foreign key constraint violations.
After all of these statements have executed there shouldn't be foreign key constraint violations.
I know about cascade, I don't want to use it because some of the changes require more complex logic.
My question is, is there a way to combine my multiple statements together (as a multi statement, transaction, etc) such that the foreign key constraints are not checked until after they are all completed? (And if there is an error than none of them are executed?)