Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rename table with "-" in it

Status
Not open for further replies.

max1x

Programmer
Jan 12, 2005
366
US
A user created a table my-data, how can I rename it to mydata.
 
johnwm:
I don't know if missed something in that article, which I had looked at prior as well, but it does not state how to replace a table name with "-" in it. So the currnet table name is "my-data" and using
rename table my-data to mydata, errors out;
I've also tried
Code:
rename table "my-data" to mydata;
rename table 'my-data" to mydata;
but nothing seems to work
 
Sorry - missed the hyphen! Just open MySQL Query Browser ( right-click on the 'my-data' table name and select Edit Table. You can change the name there directly.

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top