Delete tables
Greetings,
Could I make use of MySQL query to delete all tables
start with '_' (underscore)?
Thanks in advance and I'm using MySQL 4.1.16.
__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=gcdmw-win32 [at] m.gmane.org
Re: Delete tables
You can specify multiple tables to drop in 1 SQL statement:
drop table _tbl1,_tbl2,_tbl3;
If you are refering to wildcards, no you cannot. Cheers.
Armando
ascll wrote:
> Greetings,
>
> Could I make use of MySQL query to delete all tables
> start with '_' (underscore)?
>
> Thanks in advance and I'm using MySQL 4.1.16.
>
>
>
> __________________________________________
> Yahoo! DSL – Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>
>
--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=gcdmw-win32 [at] m.gmane.org
RE: Delete tables
You cannot directly drop tables by wildcards. If you wanted to do that,
you would have to do some programming in your client and use the output
of
SHOW TABLES LIKE 'pattern'
To construct some SQL like
DROP TABLE table1,tables2, ...
John B.
-----Original Message-----
From: ascll [mailto:ascll [at] yahoo.com]
Sent: Tuesday, 3 January 2006 4:33 PM
To: win32 [at] lists.mysql.com
Subject: Delete tables
Greetings,
Could I make use of MySQL query to delete all tables
start with '_' (underscore)?
Thanks in advance and I'm using MySQL 4.1.16.
=09
__________________________________________
Yahoo! DSL - Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32 [at] m.gmane.org