mysql 1292错误:Warning 1292 Truncated incorrect DOUBLE value:

问题:执行如下语句时出现大量Warning 1292

mysql> UPDATE show_info INNER JOIN show_like ON show_like.show_id = show_info.show_id SET show_info.status = 0 WHERE show_like.show_id = 1 AND show_like.cid = ‘taobao_mecity‘;

Query OK, 0 rows affected, 99 warnings (0.00 sec)

Rows matched: 0  Changed: 0  Warnings: 0

mysql> show warnings;

+---------+------+-----------------------------------------------------------------------+

| Level   | Code | Message                                                               |

+---------+------+-----------------------------------------------------------------------+

| Warning | 1292 | Truncated incorrect DOUBLE value: ‘25a3c516a4c15eda917963e48a254‘  |

| Warning | 1292 | Truncated incorrect DOUBLE value: ‘fd3de128303ed731e2e3dda447908‘  |

| Warning | 1292 | Truncated incorrect DOUBLE value: ‘b1f7f42f3e184812b5dff70fb3a35‘  |

| Warning | 1292 | Truncated incorrect DOUBLE value: ‘a4e7d5114b0f79987720de910fcf3‘  |

| Warning | 1292 | Truncated incorrect DOUBLE value: ‘0b19c482a49346eaedde3309e43a9‘  |

| Warning | 1292 | Truncated incorrect DOUBLE value: ‘284f24a76fb532ad60612580b30b2‘  |

| Warning | 1292 | Truncated incorrect DOUBLE value: ‘ffbee81cd49dc9925fa269acd9eff‘  |

解决:

desc show_like 发现show_id 是字符串.将sql中的show_id = 1 改为show_id = ‘1‘即可。

mysql 1292错误:Warning 1292 Truncated incorrect DOUBLE value:

时间: 2024-12-29 10:42:30

mysql 1292错误:Warning 1292 Truncated incorrect DOUBLE value:的相关文章

Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value: 'L

1.错误描述 [ERROR:]2015-06-08 09:49:42,523 [异常拦截] org.hibernate.exception.DataException: error executing work at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:69) at org.hibernate.exception.internal.Stand

Mybatis Data truncation: Truncated incorrect DOUBLE value: '*'

具体异常信息如下: org.springframework.dao.DataIntegrityViolationException: ### Error querying database. Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value: '*' 错误代码如下: 解决办法: 在mybatis中的遇到这种拼接的情况,应该使用concat函数 数据库用的是mys

ERROR 1292 (22007): Truncated incorrect DOUBLE value: 'asfsda1'

mysql> UPDATE financial_sales_order SET ASSIGN_TIME = '2018-05-02 00:00:00' where CUSTOMER_ID=3541535;ERROR 1292 (22007): Truncated incorrect DOUBLE value: 'asfsda1'mysql> desc financial_sales_order;+-------------------+--------------+------+-----+-

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) 执行报错 1292 - Truncated incorrect DOUBLE value: 'Secolul XVI - XVIII

Data truncation: Truncated incorrect DOUBLE value错误的解决方案

Data truncation: Truncated incorrect DOUBLE value错误的解决方案: 当在修改某条单位记录时,发生了Data truncation: Truncated incorrect DOUBLE value错误,该如何解决: 步骤1:找到单位对应的实体对象的hbm配置文件,如unit.hbm.xml,person.hbm.xml 步骤2:把配置文件里的一对多的属性全部去掉,或者多对一的属性去掉,如 unit.hbm.xml去掉的内容如下: <set name

mysql - Truncated incorrect DOUBLE value: &#39;undefined&#39;

mysql - Truncated incorrect DOUBLE value: 'undefined' 我是怎么遇到这个问题的? 我要从多个表里,查询统计数据,保存到统计表里,需要执行下面这种结构的 sql 语句: insert into table1 select (select count(*) from t1 where ...) c1, select (select count(*) from t1 where ...) c1 单独执行 select (select count(*)

mysql执行update语句时报错:Data truncation: Truncated incorrect DOUBLE value: &#39;null&#39;

出现这个问题的原因网上有说是update的参数连接符要用,而不是and,但是我遇到的不是这个. 我出现问题的原因是,在update语句的where中varchar类型的字段我直接用了数字类型 update address set province = '北京' where userId = 250; userId是varchar类型的,报错Data truncation: Truncated incorrect DOUBLE value: 'null' 改成这样就可以了 update addre

Truncated incorrect DOUBLE value: &#39;NO_REFUND&#39;

解决办法:Mysql中,如果一个字段是字符串,则一定要加单引号 问题原因: `item_refund_state` varchar(255) NOT NULL item_refund_state字段的类型是varchar但where条件中使用了item_refund_state=0 如果where条件中tid对应item_refund_state字段值不是字符串0,而是'NO_REFUND'之类的字符串时,就会报下面的错 Truncated incorrect DOUBLE value: 'NO

Truncated incorrect DOUBLE value

我有点傻…… sql update语法,修改的字段之间要用,连接,而不是and 否则就会报错Truncated incorrect DOUBLE value…… 如: update teacher set IMAGE_URL = #{1} and UPDATE_TIME=now() where TEACHER_MOBILE = #{0}  错误 update teacher set IMAGE_URL = #{1},UPDATE_TIME=now() where TEACHER_MOBILE =