开发者

mysql query quote signs

开发者 https://www.devze.com 2023-01-01 04:19 出处:网络
I am a newbie to mysql. I am confused by the quotes signs. In mysql query Does it make any different between

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

精彩评论

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