DROP TABLE wildcard - Mailing list pgsql-general

From Andy Koch
Subject DROP TABLE wildcard
Date
Msg-id 5.1.0.14.0.20010502124732.0241fbd0@pop.telus.net
Whole thread Raw
Responses Re: DROP TABLE wildcard  (Joel Burton <jburton@scw.org>)
List 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.


pgsql-general by date:

Previous
From: Adam Walczykiewicz
Date:
Subject: PL/Perl documentation ...
Next
From: Doug McNaught
Date:
Subject: Re: big pg 6.5 and 7.1 problem in simple application