mysql 1292錯誤:Warning 1292 Truncated incorrect DOUBLE value:

來源:互聯網
上載者:User

標籤:mysql warning 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‘即可。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.