开发者

mysql query quote signs

I am a newbie to mysql. I am confused by the quotes signs.

In mysql query

Does it make any different between

CREATE DATABASE 'mydatabase';

and

CREATE DATABSE mydatabase

One with quote, the other without Also with Insert and other开发者_如何学C commands

Thanks


In your case, it makes no difference. (Except that you have a typo in the latter command with word DATABASE.) If you had used a reserved keyword as the database name, you would have had to quote it.

http://dev.mysql.com/doc/refman/5.0/en/identifiers.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜