Skip to content

Instantly share code, notes, and snippets.

@ianlintner-wf
Last active January 2, 2016 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianlintner-wf/8308144 to your computer and use it in GitHub Desktop.
Save ianlintner-wf/8308144 to your computer and use it in GitHub Desktop.
Truncate all tables mysql in a database.
SELECT Concat('TRUNCATE TABLE ', TABLE_NAME, ';') FROM INFORMATION_SCHEMA.TABLES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment