Skip to content

Instantly share code, notes, and snippets.

@snhrdt
Created July 19, 2019 13:27
Show Gist options
  • Select an option

  • Save snhrdt/9c337a6e172a68fb71d46a9a560b342c to your computer and use it in GitHub Desktop.

Select an option

Save snhrdt/9c337a6e172a68fb71d46a9a560b342c to your computer and use it in GitHub Desktop.

Revisions

  1. snhrdt created this gist Jul 19, 2019.
    3 changes: 3 additions & 0 deletions drop-all-tables.sql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    select 'drop table if exists "' || tablename || '" cascade;'
    from pg_tables
    where schemaname = 'public';