MYSQL Truncated incorrect DOUBLE value

后端 未结 10 1897
广开言路
广开言路 2020-12-04 09:11

When the SQL query below is executed:

UPDATE shop_category 
SET name = \'Secolul XVI - XVIII\' 
    AND name_eng = \'16th to 18th centuries\' 
WHERE category         


        
10条回答
  •  盖世英雄少女心
    2020-12-04 09:48

    You don't need the AND keyword. Here's the correct syntax of the UPDATE statement:

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

提交回复
热议问题