MYSQL Truncated incorrect DOUBLE value while updating

蓝咒 提交于 2019-12-24 18:00:19

问题


Here is request for mysql database.
"UPDATE client_storrage SET LastMatched=UTC_TIMESTAMP() WHERE XUID=01100000000000"
It gives error Truncated incorrect DOUBLE value: '01100000000000'
XUID varchar(20) utf8_bin
LastMatched datetime
Can any one help to fix this ?


回答1:


if XUID is a varchar you have to use quotes around it in your query:

UPDATE client_storrage 
SET LastMatched = UTC_TIMESTAMP() 
WHERE XUID = '01100000000000'


来源:https://stackoverflow.com/questions/8943834/mysql-truncated-incorrect-double-value-while-updating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!