mysql修改Truncated incorrect DOUBLE value:
Posted ordinary
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql修改Truncated incorrect DOUBLE value:相关的知识,希望对你有一定的参考价值。
UPDATE shop_category SET name = ‘Secolul XVI - XVIII‘ AND name_eng = ‘16th to 18th centuries‘ WHERE category_id = 4768
category_id mediumint(8) name varchar(250) name_eng varchar(250)
执行报错
1292 - Truncated incorrect DOUBLE value: ‘Secolul XVI - XVIII‘
问题原因,update不应该用and,修改sql语句为
UPDATE shop_category SET name = ‘Secolul XVI - XVIII‘, name_eng = ‘16th to 18th centuries‘ WHERE category_id = 4768
以上是关于mysql修改Truncated incorrect DOUBLE value:的主要内容,如果未能解决你的问题,请参考以下文章
mysql - Truncated incorrect DOUBLE value: 'undefined'
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value:...
com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value:
Data truncated for column ‘xxx‘