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
1.4m articles
1.4m replys
5 comments
57.0k users