Created
August 28, 2018 06:05
-
-
Save aalipar13/a5d6e753243f5420a9d82602824e144e to your computer and use it in GitHub Desktop.
Cannot truncate a table referenced in a foreign key constraint
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
# Cannot truncate a table referenced in a foreign key constraint | |
SET FOREIGN_KEY_CHECKS=0; | |
TRUNCATE <table>; | |
SET FOREIGN_KEY_CHECKS=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment