Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Case Insensitive Searches In Oracle
Chuck Erickson <beachst.cerick01_at_eds.com> wrote in article
<3383971E.12BD_at_eds.com>...
> Does anyone know of any DB wide option to allow ORACLE to do case
> insensitive compares?
There is no such option, in the server, afaik. (Forms 3 and 4.5 have
options to do this in the form, however).
>[snip]
> - Storing a separate upper-case version of each field used to search.
> EMP_NAME_UPPER would be populated by a trigger that would uppercase the
> value of EMP_NAME. EMP_NAME_UPPER would be indexed and used for
> searches, while EMP_NAME would contain the mixed case value. This option
> uses extra space and you have to educate developers and users how to do
> searches.
You could always create ad-hoc query views where EMP_NAME_UPPER is renamed EMP_NAME, and EMP_NAME renamed to EMP_NAME_MIXED (or some such.) In fact, creating easy to use query views (with some tables pre-joined efficiently) for ad hoc querying is always a good idea--usually gives a runtime improvement (by discouraging badly-formed queries) for a small maintenance overhead.
-- Miles Thomas Logica UK Ltd thomasm "at" logica "dot" com The above are personal opinions, and are not necessarily the opinions of my employer.Received on Thu May 22 1997 - 00:00:00 CDT