MySQL Forums
Forum List  »  Newbie

like with backslash
Posted by: Carl Schwarcz
Date: June 29, 2005 08:45PM

Boy am I confused. Will the like operator not generate a match when comparing with a backslash?
Whth MySQL 4.1

Consider:

insert into test.junk (s) values ("a\\b\\c\\foobar.java")

but
select * from test.junk where s like "%foobar.java"

returns the record

but
select * from test.junk where s like "%c\\foobar.java"

returns no records.

Options: ReplyQuote


Subject
Written By
Posted
like with backslash
June 29, 2005 08:45PM
June 30, 2005 06:02AM
June 30, 2005 01:45PM


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.