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: Help! Case Insensitivity with SELECT..WHERE..LIKE queries

Re: Help! Case Insensitivity with SELECT..WHERE..LIKE queries

From: Ian Cary <cary_at_gatwick.geco-prakla.slb.com>
Date: 1997/09/01
Message-ID: <340ABB6A.D2E@gatwick.geco-prakla.slb.com>#1/1

You could construct a query like

select * from table
where upper(fieldx) = upper(inputx);

one problem with this however is that using the upper function on the field side of the query will prevent the use of any indexes you may have on that field.
If possible, try to ensure that all data is stored in upper case either at the application level or by using a trigger and then you can safely code;

select * from table
where fieldx = upper(inputx);

and still be using indexes to speed up the access.

Ian Received on Mon Sep 01 1997 - 00:00:00 CDT

Original text of this message

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