I can't speak for other table formats but in MyIsam tables you can take your
database down, rename the table's files (.frm .MYI .MYD), and restart the
server.  I'd make a backup if you are going to try it, though.

Jon Gardiner.

> -----Original Message-----
> From: Alex Pukinskis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 05, 2001 4:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: queries on particular table produce errors
> 
> 
> On Wednesday, December 5, 2001, at 04:08  PM, Robert Alexander wrote:
> 
> > At 15:55 -0700 2001/12/05, Alex Pukinskis wrote:
> >>> group is a reserved word, use groups as table name
> >>
> >> That being the case, how do I drop or rename a table 
> called "group"?
> >
> > Try:
> >
> > ALTER TABLE 'group' RENAME new_table_name
> 
> No luck:
> 
> mysql> ALTER TABLE 'group' RENAME groups;
> ERROR 1064: You have an error in your SQL syntax near ''group' RENAME 
> groups' at line 1
> 
> -Alex
> --
> Alex Pukinskis        
> Internet Consultant
> aboutChange
> http://aboutchange.com
> http://aboutcreative.net
> 303-444-0012
> f: 303-444-0015
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail 
> <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to