Skip to content

Instantly share code, notes, and snippets.

@muzhig
Created February 4, 2013 15:46
Show Gist options
  • Save muzhig/4707541 to your computer and use it in GitHub Desktop.
Save muzhig/4707541 to your computer and use it in GitHub Desktop.
POSTGRES
generate drop all tables statement
select 'drop table if exists "' || tablename || '" cascade;' from pg_tables where schemaname = 'public';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment