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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not able to drop database due to '-' character 1

Status
Not open for further replies.

spookie

Programmer
May 30, 2001
655
IN
Hi,

I have a database name having a '-' character in it. I am using mysql V 5.1 on Windows and I am unable to drop the database. Any suggestions on how to drop DB..



--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
look up back-ticks and enclose the nane in those. They are differecnt from single quotes but i can't recall the key stroke to get it. Google or the manula or here will help.
 
Hi ingresman ,

It worked.
drop databse `database-name`;
[\quote]

I am out of touch with this stuff and could not recollect. Thanks for pointing this out.

--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top