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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to Disable Case sensivity for string compare ?

Re: How to Disable Case sensivity for string compare ?

From: Javier Rojas <jrv_at_quisar.com>
Date: Fri, 20 Nov 1998 12:14:25 +0100
Message-ID: <36554F10.1A92E19B@quisar.com>


The problem is that this query make a full table scan:

SELECT list_of_fields

    FROM table_name
    WHERE upper(field_name) = upper('text_to_search')

You can try something like this if the field to search is indexed:

SELECT      /*+ INDEX(table_name index_name) */   list_of_fields
    FROM     table_name
    WHERE  (field_indexed LIKE 'x%' OR field_indexed LIKE 'X%')
         AND  upper(field_indexed) = upper('text_to_search')

Hope this help,

Javier Rojas.

Em Pradhan wrote:

> hi
> select * from case_checker upper(col1)=upper('kdjfalkfad');
> cheers..
>
> Loy&Hutz wrote:
>
> > I īd like to have the same behaviour like MS access.
> >
> > Is there a possibility / switch to dissable the case sensitivity for all
> > actions
> >
> > e.g.
> >
> > Select * from Tbl1 where Col1 = 'a'
> >
> > ->>>
> > Results with Col11 = 'A' or 'a'
> >
> > Perhaps with sort order ?
> >
> > Greetings Sven Kunze
Received on Fri Nov 20 1998 - 05:14:25 CST

Original text of this message

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