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

MySQL 4.1.4 关于中文的问题_MySQL

WBOY
WBOYOriginal
2016-06-01 13:56:31930browse

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

解决办法, 在建表时

CREATE TABLE pre_message_list_LU (
......

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

把 CHARSET=latin1.  加上即可。

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