MySQL 'Truncated incorrect INTEGER value'

前端 未结 6 1449
野趣味
野趣味 2020-12-11 01:57

I\'m getting an odd \'Truncated incorrect INTEGER value\' error when I run the following UPDATE query:

update tbl
set projectNumber = right(comments, 7)
wher         


        
6条回答
  •  失恋的感觉
    2020-12-11 02:32

    Another common cause for this warning is white space in the string to be converted. Use trim() before convert() to get rid of that.

提交回复
热议问题