Created
August 22, 2016 12:57
-
-
Save glafarge/23f33979ec0445609cfd5fa78e2e64d9 to your computer and use it in GitHub Desktop.
Disable temporary the SQL check for constraints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET FOREIGN_KEY_CHECKS = 0; -- Disable foreign key checking. | |
TRUNCATE TABLE forums; | |
TRUNCATE TABLE dates; | |
TRUNCATE TABLE remarks; | |
SET FOREIGN_KEY_CHECKS = 1; -- Enable foreign key checking. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment