首页 > 其他分享 >Truncated incorrect DOUBLE value

Truncated incorrect DOUBLE value

时间:2022-12-08 16:13:37浏览次数:45  
标签:incorrect set Truncated DOUBLE value type

报错提示:

> 1292 - Truncated incorrect DOUBLE value: '1,'

原因:

update device set type = REPLACE(type, '2', '') where type = 2;
type 类型为varchar,需要改为
update device set type = REPLACE(type, '2', '') where type = ’2‘;
字段类型应保持一致

 

标签:incorrect,set,Truncated,DOUBLE,value,type
From: https://www.cnblogs.com/wongzzh/p/16966382.html

相关文章