Created
August 6, 2024 10:33
-
-
Save lamngockhuong/40debf320d1b7f5d57050d08dee8f745 to your computer and use it in GitHub Desktop.
List all tables that need to be dropped from the public schema.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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