Home > Database > Mysql Tutorial > MySQL 4.1.4 关于中文的问题_MySQL

MySQL 4.1.4 关于中文的问题_MySQL

WBOY
Release: 2016-06-01 13:56:31
Original
987 people have browsed it

在MySQL 4.1.4   insert 时 中文如果会变成乱码。

解决办法, 在建表时

CREATE TABLE pre_message_list_LU (
......

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

把 CHARSET=latin1.  加上即可。

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