Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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: Mon, 31 Mar 2008 10:48:27 -0400
  • Message-id: <47F0F9BB.3060706@encs.concordia.ca> <text/plain>

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!





Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group