Home  >  Article  >  Backend Development  >  关于mysql的default

关于mysql的default

WBOY
WBOYOriginal
2016-06-23 14:26:101417browse

请问
CREATE DATABASE paging CHARACTER SET UTF8;

CREATE DATABASE paging  DEFAULT CHARACTER SET UTF8;

都可以创建表,请问有什么区别吗?DEFAULT是可选的,具体有什么用意吗?

Syntax:
CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
    [create_specification] ...

create_specification:
    [DEFAULT] CHARACTER SET [=] charset_name
  | [DEFAULT] COLLATE [=] collation_name


回复讨论(解决方案)

DEFAULT 是可选的,没有具体的用意
只是为了防止出现语法错误

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:数据库查询问题Next article:zend guard loader的安装