Home > Database > Mysql Tutorial > mysql创建数据库时制定编码语句_MySQL

mysql创建数据库时制定编码语句_MySQL

WBOY
Release: 2016-06-01 13:39:07
Original
1180 people have browsed it

bitsCN.com


mysql创建数据库时制定编码语句

 

GBK: 

 

CREATE DATABASE test1 DEFAULT 

 

CHARACTER SET gbk COLLATE gbk_chinese_ci;

 

UTF-8:    

 

CREATE DATABASE test2 DEFAULT

 

CHARACTER SET utf8 COLLATE utf8_general_ci;
 

bitsCN.com
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