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)

execution error

1292 - Truncated incorrect DOUBLE value: 'Secolul XVI - XVIII'

The reason for the problem, update should not use and, modify the sql statement to

UPDATE 
    shop_category
SET  
    name =  ' Secolul XVI - XVIII ' ,
    name_eng = '16th to 18th centuries' 
WHERE 
    category_id = 4768

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325108034&siteId=291194637