Skip to content

Instantly share code, notes, and snippets.

@StevenMMortimer
Created November 30, 2015 14:19
Show Gist options
  • Save StevenMMortimer/dace98a6e1aafae44f9c to your computer and use it in GitHub Desktop.
Save StevenMMortimer/dace98a6e1aafae44f9c to your computer and use it in GitHub Desktop.
select 'DROP TABLE my_schema.' || tablename || ';'
from pg_tables where schemaname = 'my_schema';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment