drop table where tableName like 'backup_2007%' ?

From: Emi Lu <emilu(at)encs(dot)concordia(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: drop table where tableName like 'backup_2007%' ?
Date: 2008-03-31 14:48:27
Message-ID: 47F0F9BB.3060706@encs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Good morning,

Is there a command to drop tables whose name begins a specific string?

For example, all backup tables begins with backup_2007:
Drop table where tableName like 'backup_2007%'?

Thanks a lot!

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2008-03-31 15:55:14 Re: drop table where tableName like 'backup_2007%' ?
Previous Message Craig Ringer 2008-03-31 11:48:34 Re: Removing redundant itemsets