You are here: Re: What does `Catalog`.item like '%A\-%' mean? -MySQL? « PHP Programming Language « IT news, forums, messages
Re: What does `Catalog`.item like '%A\-%' mean? -MySQL?

Posted by Andy Hassall on 06/29/05 23:41

On Wed, 29 Jun 2005 16:34:47 -0400, Jefferis NoSpamme <jefferisp7@hotmail.com>
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@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация