Add to Favourites Add to Favourites    Print this Article Print this Article

I get an error when entering USE followed by a db name containing an hyphen.

The tests I have made with current MySQL 4.1.11 API shows that the API does not accept this syntax for the USE command. Enclosing the db name with backquotes works. For further confusion, no backquotes are needed with command-line mysql.

Was this answer helpful?

Also Read