mysql修改数据库编码格式

遇到的问题描述:向数据库插入中文时出现:[Err] 1366 - Incorrect string value: ‘\xE6\x9B\xBE\xE5\x8D\x8E’ for column ‘sname’ at row 1web 解决办法:将该表中的sname这一列的字符集都改成utf-8sql 首先运行下列代码,查看students 表中每个字段的字符集数据库 show full columns
相关文章
相关标签/搜索