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
Toby Speight has outlined one solution for the problem in his answer. I don't know if anybody will ever be as stupid as me, but to whom it may concern:
I got Error code 1292 trying to modify the data type of a column IsDeleted from VARCHAR ('Y' => true, 'N' => false) to BIT.
To resolve the problem: Update all 'Y's to '1's (UPDATE table SET isDeleted = '1' WHERE isDeleted = 'Y') and all 'N's to '0's, tried to modify the column type again and voila data type was modified PLUS the '1'-columns contain TRUE and vice-versa now.