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 -> Case-insensitive queries on character columns

Case-insensitive queries on character columns

From: Jim Lewis <jclewis_at_time-and-money.com>
Date: Tue, 01 Sep 1998 14:57:38 GMT
Message-ID: <CXTG1.199$S66.705313@news1.atl.bellsouth.net>


How do you set up or exploit an index on a mixed-case char. field (such as a name or address) so that you can have fast CASE INSENSITIVE queries?

In some languages, the technique is to add an index on the mixed-case field as UPPER(fieldname), then force any query parms to upper case before executing the query. The database engine then matches the uppercase parm value to the uppercase index on the field. However, in Oracle, functions are now allowed in indexes. How do you accomplish this? Received on Tue Sep 01 1998 - 09:57:38 CDT

Original text of this message

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