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
How Loon [ Di, 03 Januar 2006 07:02 ] [ ID #1125086 ]

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
Dijital [ Mi, 04 Januar 2006 02:38 ] [ ID #1126650 ]

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
jbonnett [ Mi, 04 Januar 2006 22:39 ] [ ID #1126655 ]
Datenbanken » gmane.comp.db.mysql.windows » Delete tables

Vorheriges Thema: Query works on mysql 4.1.16 but return error on 4.0.22
Nächstes Thema: queries getting stuck in "Opening table" state