-
-
Save fernandovega/2a9896d47e797c52b751f5d31474efe8 to your computer and use it in GitHub Desktop.
Truncate all tables in db
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; | |
SELECT Concat('TRUNCATE TABLE ',table_schema,'.',TABLE_NAME, ';') FROM INFORMATION_SCHEMA.TABLES where table_schema in ('sectorvisual'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment