About 88,600 results
Open links in new tab
  1. How can I drop all the tables in a PostgreSQL database?

    How can I drop all tables in PostgreSQL, working from the command line? I don't want to drop the database itself, just all tables and all the data in them.

  2. How to drop multiple tables in PostgreSQL using a wildcard

    Nov 17, 2010 · Also, in pgadmin3 if you select the schema name, and then go to tab 'Dependants' you can select all tables (using shift key) and then copy them all using CTRL + C. Then use …

  3. Cannot drop table users because other objects depend on it

    Feb 11, 2016 · 91 I want to drop my tables in my database. But, when I use, for example, DROP TABLE if exists users; I receive this message: cannot drop table users because other objects …

  4. python - Postgresql DROP TABLE doesn't work - Stack Overflow

    I'm trying to drop a few tables with the "DROP TABLE" command but for a unknown reason, the program just "sits" and doesn't delete the table that I want it to in the database. I have 3 tables …

  5. PostgreSQL delete all content - Stack Overflow

    Nov 4, 2012 · I want to delete all data in my PostgreSQL tables, but not the table itself. How could I do this?

  6. How to drop multiple columns in PostgreSQL - Stack Overflow

    I want to drop 200 columns in my table in PostgreSQL. I tried:

  7. How can I drop all indexes of a table in Postgres?

    Dec 1, 2015 · DEPENDENCY_INTERNAL (i) The dependent object was created as part of creation of the referenced object, and is really just a part of its internal implementation. You …

  8. How can I create a role with privileges to drop tables in …

    Dec 1, 2022 · 1 I need to create separate role which will have the privilege to drop a table. The problem is that the database contains more than 1000 tables. Is there any way to change the …

  9. Drop table if exists in PostgreSQL database - Stack Overflow

    Jun 30, 2014 · Drop table if exists in PostgreSQL database Asked 11 years, 5 months ago Modified 11 years, 5 months ago Viewed 40k times

  10. PostgreSQL, drop tables with query - Stack Overflow

    Jan 26, 2014 · DROP TABLE IF EXISTS (SELECT c.relname FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN ('r','') AND …