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

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

WBOY
Release: 2016-06-13 11:34:47
Original
817 people have browsed it

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

想知道具体怎么加?谢谢

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