MYSQL Truncated incorrect DOUBLE value

后端 未结 10 1894
广开言路
广开言路 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:37

    Try replacing the AND with ,

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

    The UPDATE Syntax shows comma should be used as the separator.

提交回复
热议问题