mysql LIKE with double percent
问题 I just debugging a legacy code and I found a strange part in it. Does anybody has an idea, what does the following mean in the MYSQL string? full_name LIKE '%%{fullname}%%' 回答1: As in the answer Mihir Dave's comment links to, there's no difference to SQL if you pass %% instead of % . Since a single % matches zero or more characters, then each of the metacharacters in %% would also match zero or more, and ultimately the same string would match one way or another. But I'd guess your legacy code