Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save QuentinFonteneau/822cb8978943a9fd45ed20e816d44730 to your computer and use it in GitHub Desktop.
Save QuentinFonteneau/822cb8978943a9fd45ed20e816d44730 to your computer and use it in GitHub Desktop.
Drop tables quickly
SELECT concat('DROP TABLE IF EXISTS `', table_name, '`;')
FROM information_schema.tables
WHERE table_schema = 'MyDatabaseName';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment