🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #11003

Re: Case-insensitive WHERE usage

#11003
From: Jeff Overcash (TeamB)
Date: Sun, 22 Dec 2002 15:22
37 lines
2592 bytes

Edward Diener wrote:
> 
> Thanks ! UPPER should work just fine, but I will look at collation for
> possible international distribution.
> 

The problem with UPPER is that you will lose the ability to do an indexed
search.  It will result in an natural scan.  Collation drivers ( that are
written correctly) will allow for case insensitive in both the order by and
where sections (note that many of the IB supplied ones only work in the Order by
section).  Another alternative is another column that triggers keep filled out
that uppercases the column you want and you place an index on that column and
search that column.

> "Aage Johansen" <aagjohan@offline.no> wrote in message
> news:3E04EBF2.1EE39FD6@offline.no...
> > Edward Diener wrote:
> > > When using WHERE with a CHAR or VARCHAR field, is ther a way to specify
> that
> > > I want to match the value of the field with a string constant in a case
> > > insensitive manner ?
> >
> >
> > where Upper(THEFIELD) = Upper(:TheValue)
> >
> > or, you might try a case insensitive collation.

-- 
Jeff Overcash (TeamB) 
      (Please do not email me directly unless  asked. Thank You) 
Maybe it was infatuation or the thrill of the chase.
Maybe you were always beyond my reach and my heart was playing safe.
But was that love in your eye I saw or the reflection of mine?
Give me time, won't you give me that time!
Welcome back to the circus.            (Fish)
Technical Details
Message-ID: <3E05D89A.88B2E141@mindspring.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3e04e5fe$1@newsgroups.borland.com> <3E04EBF2.1EE39FD6@offline.no> <3e054cf3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,5eb36440605f994f
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-22 07:39:06 PST
Message-ID: <3E05D89A.88B2E141@mindspring.com>
Date: Sun, 22 Dec 2002 10:22:02 -0500
From: "Jeff Overcash (TeamB)" <jeffovercash@mindspring.com>
Organization: TeamB
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.interbase.sql
Subject: Re: Case-insensitive WHERE usage
References: <3e04e5fe$1@newsgroups.borland.com> <3E04EBF2.1EE39FD6@offline.no> <3e054cf3@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.175.66.235
X-Trace: newsgroups.borland.com 1040570525 216.175.66.235 (22 Dec 2002 07:22:05 -0800)
Lines: 37
X-Authenticated-User: overcash
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail