Created
February 17, 2015 10:03
-
-
Save sixertoy/96615445478b9981afd5 to your computer and use it in GitHub Desktop.
MySQL Truncate With Foreign Keys
This file contains hidden or 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; | |
TRUNCATE table1; | |
TRUNCATE table2; | |
SET FOREIGN_KEY_CHECKS=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment