drop all foreign key constraints sql server code example Example: drop all foreign key constraints mysql SET foreign_key_checks = 0;