DROP TABLE wildcard

From: Andy Koch <dfunct(at)telus(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: DROP TABLE wildcard
Date: 2001-05-02 19:52:57
Message-ID: 5.1.0.14.0.20010502124732.0241fbd0@pop.telus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is it possible to drop multiple tables with SQL on the system tables:

I tried this:

DROP TABLE from pg_tables where tablename LIKE 'table_num_%';

Which for whatever reason would delete 0 items despite it should have
matched on several.

Of course I'm not even sure pg_tables would be the smart place to make the
delete from?

Thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christian Marschalek 2001-05-02 19:53:26 Strange SERIAL / Sequence error
Previous Message Doug McNaught 2001-05-02 19:38:06 Re: Re: Stranger than fiction - EXPLAIN results