Drop all tables in Postgres | The Dev Tool | Toolel.com

You can run the following command to get a list of all tables with dropping statements:

select 'drop table if exists "' || tablename || '" cascade;' from pg_tables;

after this you have to run it.

Created by: martin

Comments

This page is only partially working without JavaScript. It will show content, but the tools and interactivity cannot be shown without JavaScript enabled. Please enable JavaScript for this page. About Us