MySQL Forums
Forum List  »  InnoDB

Re: LIKE not working as expected
Posted by: Robert Simpson
Date: April 27, 2020 11:02AM

No, but you _would_ expect

select * from data WHERE stringValue like '%\\\\%' escape '\\';

in my example to produce a positive result, for the same reason that this does:

select "Thor\\'s Hammer" like '%\\\\%' escape '\\';
+---------------------------------------------+
| "Thor\\'s Hammer" like '%\\\\%' escape '\\' |
+---------------------------------------------+
|                                           1 |
+---------------------------------------------+

Options: ReplyQuote


Subject
Views
Written By
Posted
250
April 18, 2020 08:37PM
134
April 18, 2020 09:14PM
106
April 19, 2020 10:38AM
Re: LIKE not working as expected
85
April 27, 2020 11:02AM


Sorry, only registered users may post in this forum.

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.