您的位置:首页 > 产品设计 > UI/UE

Mysql Err:1366, u"Incorrect string value

2017-01-04 14:52 369 查看
mysql> show full columns from customer_scene
;
+--------------+-------------+-------------------+------+-----+---------+----------------+---------------------------------+---------+
| Field        | Type        | Collation         | Null | Key | Default | Extra          | Privileges                      | Comment |
+--------------+-------------+-------------------+------+-----+---------+----------------+---------------------------------+---------+
| id           | int(11)     | NULL              | NO   | PRI | NULL    | auto_increment | select,insert,update,references |         |
| scene_name   | varchar(30) | latin1_swedish_ci | NO   |     | NULL    |                | select,insert,update,references |         |
| createTime   | datetime(6) | NULL              | NO   |     | NULL    |                | select,insert,update,references |         |
| userspace_id | int(11)     | NULL              | NO   | MUL | NULL    |                | select,insert,update,references |         |
| timer        | datetime(6) | NULL              | YES  |     | NULL    |                | select,insert,update,references |         |
+--------------+-------------+-------------------+------+-----+---------+----------------+---------------------------------+---------+
5 rows in set

mysql> alter table customer_scene modify scene_name varchar(30) character set utf8;
Query OK, 0 rows affected
Records: 0  Duplicates: 0  Warnings: 0

mysql> show full columns from customer_scene;
+--------------+-------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
| Field        | Type        | Collation       | Null | Key | Default | Extra          | Privileges                      | Comment |
+--------------+-------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
| id           | int(11)     | NULL            | NO   | PRI | NULL    | auto_increment | select,insert,update,references |         |
| scene_name   | varchar(30) | utf8_general_ci | YES  |     | NULL    |                | select,insert,update,references |         |
| createTime   | datetime(6) | NULL            | NO   |     | NULL    |                | select,insert,update,references |         |
| userspace_id | int(11)     | NULL            | NO   | MUL | NULL    |                | select,insert,update,references |         |
| timer        | datetime(6) | NULL            | YES  |     | NULL    |                | select,insert,update,references |         |
+--------------+-------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
5 rows in set

mysql>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: