MySQL 5.6 - query varchar with single quotes

332 views Asked by At

Please look at the screenshot below to see the issue.

enter image description here

1

There are 1 answers

0
Glimpse On

The issue is the length/size of the varchar "code" column. MySQL 4 will allow you to insert and query values larger than the allowed size. I don't know about inserting, but for MySQL 5, it doesn't allow you to query specifically for a value larger than the column size.

In MySQL 5 where the code column is a varchar(3), I could do "select * from billing where code = '101'", but not "select * from billing where code = '101.1'".