Gossamer Forum
Home : Products : Others : MySQLMan :

Wildcard for Table Names

Quote Reply
Wildcard for Table Names
I am trying to use the SQL Monitor to DROP all tables within a database, but not delete or DROP the whole database.

I've tried using:

Code:

DROP TABLE tbl_AG_'%'


AND

Code:

DROP TABLE tbl_AG_'\%'


AND

Code:

DROP TABLE 'tbl_AG_\%'


I've searched the http://www.mysql.com web site and read most of the DROP syntax tutorials. It doesn't seem like MySQL supports wildcard characters within table names.

Anyone know if it is possible to include wildcard characters in table names????

Individually DROPping 40 tables in a database is a pain!

Thanks in advance....

Regards,

Eliot Lee
Subject Author Views Date
Thread Wildcard for Table Names Stealth 8907 Jun 13, 2001, 9:23 PM
Thread Re: Wildcard for Table Names
Paul 8801 Jun 14, 2001, 6:14 AM
Thread Re: Wildcard for Table Names
Stealth 8803 Jun 14, 2001, 7:03 AM
Thread Re: Wildcard for Table Names
Paul 8791 Jun 14, 2001, 8:04 AM
Thread Re: Wildcard for Table Names
Stealth 8792 Jun 14, 2001, 8:12 AM
Thread Re: Wildcard for Table Names
Paul 8799 Jun 14, 2001, 8:18 AM
Post Re: Wildcard for Table Names
Stealth 8788 Jun 14, 2001, 8:38 AM
Post Re: Wildcard for Table Names
Paul 8790 Jun 14, 2001, 8:22 AM