Article View: borland.public.interbase.sql
Article #11004Re: Case-insensitive WHERE usage
From: Edward Diener
Date: Sun, 22 Dec 2002 16:31
Date: Sun, 22 Dec 2002 16:31
54 lines
3191 bytes
3191 bytes
I am searching the system tables for the name of a table for a given database. If the dialect is case-insensitive, the name passed to my function could refer to a name which does not exactly match the name in the appropriate system table. Therefore I have converted the name passed to uppercase and used the UPPER keyword on the appropriate column to find the match. I am not sure how to use a collation driver to do the same thing. "Jeff Overcash (TeamB)" <jeffovercash@mindspring.com> wrote in message news:3E05D89A.88B2E141@mindspring.com... > > > 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:
<3e05e851$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3e04e5fe$1@newsgroups.borland.com> <3E04EBF2.1EE39FD6@offline.no> <3e054cf3@newsgroups.borland.com> <3E05D89A.88B2E141@mindspring.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 08:38:47 PST From: "Edward Diener" <eddielee@tropicsoft.com> Newsgroups: borland.public.interbase.sql References: <3e04e5fe$1@newsgroups.borland.com> <3E04EBF2.1EE39FD6@offline.no> <3e054cf3@newsgroups.borland.com> <3E05D89A.88B2E141@mindspring.com> Subject: Re: Case-insensitive WHERE usage Date: Sun, 22 Dec 2002 11:31:49 -0500 Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 66.32.66.157 Message-ID: <3e05e851$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1040574545 66.32.66.157 (22 Dec 2002 08:29:05 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail