码迷,mamicode.com
首页 > 数据库 > 详细

mysql修改Truncated incorrect DOUBLE value:

时间:2018-05-02 02:24:49      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:int   HERE   bsp   varchar   medium   _id   double   har   mys   

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)

执行报错

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

问题原因,update不应该用and,修改sql语句为

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

 

mysql修改Truncated incorrect DOUBLE value:

标签:int   HERE   bsp   varchar   medium   _id   double   har   mys   

原文地址:https://www.cnblogs.com/dashuai01/p/8978073.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!