Created
April 29, 2014 06:12
-
-
Save sankars/11391807 to your computer and use it in GitHub Desktop.
Mysql queries dealing with structures of tables and views
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
| -- From http://stackoverflow.com/questions/5452760/truncate-foreign-key-constrained-table | |
| 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