Good evening! I have a MYSQL problem that I can't figure out...
Here's my situation:
Table Name: up_categorys
ID | Category
--------------
5 | Xbox Live
When I do this query, the database returns zero rows:
SELECT id FROM up_categorys WHERE category_name = 'Xbox Live' LIMIT 0 , 30
But when I do this query, the database returns 1 row:
SELECT id FROM up_categorys WHERE category_name LIKE '%Xbox Live%' LIMIT 0 , 30
Maybe a genius can solve this? Maybe you!
SELECT id FROM up_categorys WHERE category_name LIKE 'Xbox Live' LIMIT 0 , 30orSELECT id FROM up_categorys WHERE category_name LIKE 'Xbox Live%' LIMIT 0 , 30orSELECT id FROM up_categorys WHERE category_name LIKE '%Xbox Live' LIMIT 0 , 30. Does any of these queries return something?SELECT length(category_name) FROM up_categorys WHERE category_name LIKE '%Xbox Live%'to make sure the value has the expected 9 characters.