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
932
April 18, 2020 08:37PM
435
April 18, 2020 09:14PM
425
April 19, 2020 12:27AM
433
April 19, 2020 10:38AM
500
April 23, 2020 07:13PM
Re: LIKE not working as expected
417
April 27, 2020 08:13AM
368
April 27, 2020 11:02AM
414
April 27, 2020 12:00PM
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.