Error : Truncated incorrect DOUBLE value
如果字段类型是字符串,但值却用了数字形式,可能会导致上面的错误。例如table_a有字段type是varchar类型,如果是这么写就会出现Error : Truncated incorrect DOUBLE value
update table_a set type='Sale' where type=1;
正确的写法应该是:
update table_a set type='Sale' where type='1';