"David Jackson" <[EMAIL PROTECTED]> wrote:
> Howdy --
> How can I drop all tables in a databases?

Get list of table names with SHOW TABLES FROM db_name and compose DROP TABLE statement.

> How can I drop tables beginning with foo_
> 

In this case you can use SHOW TABLES .. LIKE 'foo\_%' statement to get list of the 
table names.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to