MySQL 1292 error: Warning 1292 truncated incorrect DOUBLE value:

Source: Internet
Author: User
Tags truncated

Problem: A large number of warning occur when executing the following statement 1292

mysql> UPDATE show_info INNER JOIN show_like on show_like.show_id = show_info.show_id SET show_info.status = 0 WHERE sh ow_like.show_id = 1 and show_like.cid = ' taobao_mecity ';

Query OK, 0 rows affected, 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 ' |

Solve:

Desc Show_like found that show_id is a string. Change show_id = 1 in sql to show_id = ' 1 '.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.