关于mysql的default

WBOY
Release: 2016-06-23 14:26:10
Original
1420 people have browsed it

请问
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 是可选的,没有具体的用意
只是为了防止出现语法错误

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template