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 '%\\%' escape '\\'... to return a positive result.

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

Options: ReplyQuote

Written By
April 18, 2020 08:37PM
Re: LIKE not working as expected
April 27, 2020 08:13AM

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.