简体   繁体   English

在MySQL中,CREATE DATABASE dbname CHARSET utf8和CREATE DATABASE dbname DEFAULT CHARSET utf8有什么区别?

[英]In MySQL, what is the difference between CREATE DATABASE dbname CHARSET utf8 and CREATE DATABASE dbname DEFAULT CHARSET utf8?

What does it change to add the keyword DEFAULT ? 添加关键字DEFAULT会发生什么变化? I can't figure out and the Mysql documentation just says that 我不知道和Mysql文档只是说

The CHARACTER SET clause specifies the default database character set CHARACTER SET子句指定默认数据库字符集

Does that mean that DEFAULT is useless ? 这是否意味着DEFAULT是没有用的?

PS : Sorry for my english, not my mother tongue. PS:对不起,我的英语不是我的母语。

Yes. 是。 It is useless. 这没用。 It's just for semantics, but you can leave it out just as for instance 'outer' in 'left outer join'. 它仅用于语义,但是您可以将其省略,例如“左外部连接”中的“外部”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM