Truncated incorrect DECIMAL value: ”

This error message is not helpful at all. There are similar error to this for DOUBLE etc instead of DECIMAL value.

I got this error when running a simple query like below in MySQL.

update table_1
set field_value = “value”
where field_id in (123, 345, 456);

This caused by the value in where condition compared to a non-integer value. For example, there are some empty string in field_id field.

The solution – changed the string in field_id to NULL or integer value.

Leave a Reply

Your email address will not be published. Required fields are marked *