Article View: borland.public.interbase.sql
Article #351Re: Ignoring spaces in a comparison
From: Wayne Niddery (TeamB)
Date: Wed, 19 Mar 2008 15:41
Date: Wed, 19 Mar 2008 15:41
18 lines
1650 bytes
1650 bytes
"Russell" <russell@removethis.smxi.com> wrote in message
news:47e102ef@newsgroups.borland.com...
> is there a simple way of ignoring spaces in a select, sort of
>
> WHERE IgnoreSpaces("MYFIELD") = 'MYVALUE'
>
> or is there a simple LIKE pattern that will achieve this effect? Not
> really worried about performance on this one.
If the spaces are strictly leading and/or trailing, then you will find the
value with:
WHERE "MYFIELD" LIKE '%MYVALUE%'
--
Wayne Niddery - TeamB (www.teamb.com)
Winwright, Inc. (www.winwright.ca)
Technical Details
Message-ID:
<47e13425$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47e102ef@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,b5491670544a772d X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Wayne Niddery \(TeamB\)" <wniddery@chaffaci.on.ca> Newsgroups: borland.public.interbase.sql References: <47e102ef@newsgroups.borland.com> In-Reply-To: <47e102ef@newsgroups.borland.com> Subject: Re: Ignoring spaces in a comparison Date: Wed, 19 Mar 2008 11:41:26 -0400 Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 24.137.214.213 Message-ID: <47e13425$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1205941285 24.137.214.213 (19 Mar 2008 08:41:25 -0700) X-Authenticated-User: wniddery Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail