Re: LIKE not working as expected
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.
Subject
Views
Written By
Posted
322
April 18, 2020 08:37PM
179
April 18, 2020 09:14PM
141
April 19, 2020 12:27AM
144
April 19, 2020 10:38AM
118
April 23, 2020 07:13PM
Re: LIKE not working as expected
112
April 27, 2020 08:13AM
118
April 27, 2020 11:02AM
106
April 27, 2020 12:00PM
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.