Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Select Tables for drop in MySQL
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