MYSQL Truncated incorrect DOUBLE value

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

    I did experience this error when I tried doing an WHERE EXIST where the subquery matched 2 columns that accidentially was different types. The two tables was also different storage engines.

    One column was a CHAR (90) and the other was a BIGINT (20).

    One table was InnoDB and the other was MEMORY.

    Part of query:

    [...] AND EXISTS (select objectid from temp_objectids where temp_objectids.objectid = items_raw.objectid );
    

    Changing the column type on the one column from BIGINT to CHAR solved the issue.

提交回复
热议问题