MySQL Forums
Forum List  »  InnoDB

Re: LIKE not working as expected
Posted by: Peter Brawley
Date: April 27, 2020 08:13AM

MySQL 5.1 has been obsolete for years, I've no way to reproduce anything with it.

Obviously ...
select "Thor\\'s Hammer" like '%\\%' escape '\\';
+-------------------------------------------+
| "Thor\\'s Hammer" like '%\\%' escape '\\' |
+-------------------------------------------+
|                                         0 |
+-------------------------------------------+
... so I do not understand why one would expect ...like '%\\%' escape '\\'... to return a positive result.



Edited 1 time(s). Last edit at 04/27/2020 01:28PM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
932
April 18, 2020 08:37PM
435
April 18, 2020 09:14PM
433
April 19, 2020 10:38AM
Re: LIKE not working as expected
417
April 27, 2020 08:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.