Is there any difference between:
SELECT * FROM users WHERE username="davyjones"
and
SELECT * FROM users WHERE username LIKE "davyjones"
LIKE allows partial matching / use of wildcards, while = checks for exact matches.
LIKE
=
For example
SELECT * FROM test WHERE field LIKE '%oom';
Will return rows where field value is any of the following:
Zoom, Boom, Loom, Groom
2.1m questions
2.1m answers
60 comments
57.0k users