Home >Backend Development >PHP Tutorial >php建表的时候如何给中文字段加上连接校对

php建表的时候如何给中文字段加上连接校对

WBOY
WBOYOriginal
2016-06-13 11:34:47817browse

php建表的时候怎么给中文字段加上连接校对?
为了解决字符乱码问题,有人告诉我建表的时候给中文字段加上连接校对 gbk_chinese_ci 或 utf8_general_ci
   告诉 mysql 用什么字符集存放数据。

想知道具体怎么加?谢谢

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