Is there a way to override mysql foreign key constraints in a php script?
I have a query passed to mysql from php, but it fails a foreign key constraint, is there any wa
I have something like this in my snippet collection:
SET @BACKUP_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS; SET @@FOREIGN_KEY_CHECKS=0; -- Do stuff here SET @@FOREIGN_KEY_CHECKS=@BACKUP_FOREIGN_KEY_CHECKS; SET @BACKUP_FOREIGN_KEY_CHECKS=NULL;