Are there any differences in the results of these two queries other than performance?
SELECT * FROM pet WHERE name LIKE \'Spot\';
SELECT * FROM pet WHERE nam
Effectively, it turns out to be the same thing in your example, but here is more info:
From another stackoverflow answer
= is a comparison operator that operates on numbers and strings. When comparing strings, the comparison operator compares whole strings.
LIKE is a string operator that compares character by character.