Home >Backend Development >PHP Tutorial >关于mysql的default解决方案

关于mysql的default解决方案

WBOY
WBOYOriginal
2016-06-13 11:39:57851browse

关于mysql的default
请问
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

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