Skip to content

Instantly share code, notes, and snippets.

@jpadilla
Created July 22, 2013 20:05
Show Gist options
  • Save jpadilla/6057161 to your computer and use it in GitHub Desktop.
Save jpadilla/6057161 to your computer and use it in GitHub Desktop.
Drop Table generator
select 'drop table if exists "' || tablename || '" cascade;'
from pg_tables
where schemaname = 'public'; -- or any other schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment