Re: What does `Catalog`.item like '%A\-%' mean? -MySQL?
- From: Andy Hassall <andy@xxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 21:41:39 +0100
On Wed, 29 Jun 2005 16:34:47 -0400, Jefferis NoSpamme <jefferisp7@xxxxxxxxxxx>
wrote:
>I am looking at an old query and I cannot remember or figure out what this
>part of the query means:
>
>`Catalog`.item like '%A\-%'
>It is the like '%A\-%'
>
>I cannot figure out.
% is a wildcard.
\ escapes a character.
So it's matching anything that has the string "A-" within the item field.
Don't know why the '-' is escaped, it's not a special character in LIKE
expressions - '%A-%' would appear to be equivalent.
--
Andy Hassall / <andy@xxxxxxxxxxx> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
.
- Follow-Ups:
- Re: What does `Catalog`.item like '%A\-%' mean? -MySQL?
- From: Jefferis NoSpamme
- Re: What does `Catalog`.item like '%A\-%' mean? -MySQL?
- References:
- What does `Catalog`.item like '%A\-%' mean? -MySQL?
- From: Jefferis NoSpamme
- What does `Catalog`.item like '%A\-%' mean? -MySQL?
- Prev by Date: Easy question
- Next by Date: Re: global
- Previous by thread: What does `Catalog`.item like '%A\-%' mean? -MySQL?
- Next by thread: Re: What does `Catalog`.item like '%A\-%' mean? -MySQL?
- Index(es):
Relevant Pages
|