Re: dropping multiple tables with one command question

2004-01-02 Thread Egor Egorov
tom poe [EMAIL PROTECTED] wrote:
 
 What's the command for dropping multiple tables?
 
 Example:
 12 tables that all start with:
 phpbb_
 
 What?  Well, the install isn't going as planned.  I am having to
 reinstall as I try to work out script path (I think) or some other piece
 of info that isn't entered correctly, yet.
 
 Anyway, DROP TABLE tablename;  is one table.  I want to drop all the
 tables without typing them, but using DROP TABLE phpbb*; doesn't work.


You can't use wildcards in the DROP TABLE command. 



-- 
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]



Re: dropping multiple tables with one command question

2004-01-02 Thread Arne K. Haaje
fredag 02. januar 2004, 12:11, skrev Egor Egorov:
 tom poe [EMAIL PROTECTED] wrote:
  What's the command for dropping multiple tables?
 
  Example:
  12 tables that all start with:
  phpbb_
 
  What?  Well, the install isn't going as planned.  I am having to
  reinstall as I try to work out script path (I think) or some other piece
  of info that isn't entered correctly, yet.
 
  Anyway, DROP TABLE tablename;  is one table.  I want to drop all the
  tables without typing them, but using DROP TABLE phpbb*; doesn't work.

 You can't use wildcards in the DROP TABLE command.

But you can do DROP table1; DROP table2; DROP table3; etc..

Arne

-- 

Arne K. Haaje   | www.drlinux.no
Bregneveien 9   | 
1825 Tomter | M: 92 88 44 66


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



Re: dropping multiple tables with one command question

2004-01-02 Thread Mikhail Entaltsev
Hi Tom,

Look at the docs:
http://www.mysql.com/doc/en/DROP_TABLE.html

Happy New Year and best regards,
Mikhail.


- Original Message - 
From: tom poe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 01, 2004 8:33 AM
Subject: dropping multiple tables with one command question


 Happy New Year!!!
 
 What's the command for dropping multiple tables?
 
 Example:
 12 tables that all start with:
 phpbb_
 
 What?  Well, the install isn't going as planned.  I am having to
 reinstall as I try to work out script path (I think) or some other piece
 of info that isn't entered correctly, yet.
 
 Anyway, DROP TABLE tablename;  is one table.  I want to drop all the
 tables without typing them, but using DROP TABLE phpbb*; doesn't work.
 
 Any help appreciated.
 Happy New Year,
 Tom
 
 
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 

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



Re: dropping multiple tables with one command question

2004-01-02 Thread Mikhail Entaltsev
 But you can do DROP table1; DROP table2; DROP table3; etc..

You can do even better:
drop table table1, table2, table3;

:)

Best regards,
Mikhail.


- Original Message - 
From: Arne K. Haaje [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 02, 2004 12:29 PM
Subject: Re: dropping multiple tables with one command question


 fredag 02. januar 2004, 12:11, skrev Egor Egorov:
  tom poe [EMAIL PROTECTED] wrote:
   What's the command for dropping multiple tables?
  
   Example:
   12 tables that all start with:
   phpbb_
  
   What?  Well, the install isn't going as planned.  I am having to
   reinstall as I try to work out script path (I think) or some other
piece
   of info that isn't entered correctly, yet.
  
   Anyway, DROP TABLE tablename;  is one table.  I want to drop all the
   tables without typing them, but using DROP TABLE phpbb*; doesn't work.
 
  You can't use wildcards in the DROP TABLE command.

 But you can do DROP table1; DROP table2; DROP table3; etc..

 Arne

 -- 
 
 Arne K. Haaje | www.drlinux.no
 Bregneveien 9 |
 1825 Tomter | M: 92 88 44 66
 

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



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



dropping multiple tables with one command question

2004-01-01 Thread tom poe
Happy New Year!!!

What's the command for dropping multiple tables?

Example:
12 tables that all start with:
phpbb_

What?  Well, the install isn't going as planned.  I am having to
reinstall as I try to work out script path (I think) or some other piece
of info that isn't entered correctly, yet.

Anyway, DROP TABLE tablename;  is one table.  I want to drop all the
tables without typing them, but using DROP TABLE phpbb*; doesn't work.

Any help appreciated.
Happy New Year,
Tom




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