Yesterday I ran a query
UPDATE table SET col='newvalue' WHERE col = 99
where col is a VARCHAR
It updated rows like "099string" and "99something" which obviously resulted in wrong updates
I expected to update only where col = "99"
I am using 10.2.40-MariaDB-1:10.2.40+maria~bionic-log
PS: I know "099anystring" = "99" will work as I intend.
But that is not my question.
My question is what is the technical reason for "099anystring" = 99 returning true?