Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: create index with lowercase

Re: create index with lowercase

From: Niall Litchfield <niall.litchfield_at_dial.pipex.com>
Date: Wed, 30 Oct 2002 11:21:03 -0000
Message-ID: <3dbfc0a1$0$8509$cc9e4d1f@news.dial.pipex.com>


"Jörg Schneider" <oracle_news.3.joesch_at_spamgourmet.com> wrote in message news:apoaq5$det$1_at_newsreader2.netcologne.de...
> hello together,
>
> we are having a field "name" in our table. Now we want to seach not
> case-sensitive. If we use lowercase of the field and the searchstring, the
> database uses full-table-scan. Is it possible to use the function
lowercase
> (?) in an index on field "name"? We must support ORACLE 7.3 till 9.x.

The only solution that will work across all those versions is to create a second field and populate it with the data from your 'case insensitive' field upper (or lower cased) via a trigger. Then do your searches against the second column. 8i and higher do allow you to create function based indexes this functionality requires Oracle Enterprise Edition.

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer
******************************************
Received on Wed Oct 30 2002 - 05:21:03 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US