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: turn off/on case insensetive search in Oracle DBMS

Re: turn off/on case insensetive search in Oracle DBMS

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Fri, 27 Jul 2001 11:13:33 +0200
Message-ID: <9jrbef$hld$1@ctb-nnrp1.saix.net>

"Thomas Liang" <liangluosheng_at_china.com> wrote

> you can write
> SELECT * FROM table WHERE UPPER(field1)='name'

Just be careful when doing this as every single row read, call this function. When dealing with large volumes of data, this results in very noticeable performance overheads. As a rule, always try and perform the function on the data projected (i.e. the columns in the SELECT cause and not in the WHERE clause) and on the literals given in the WHERE clause as criteria.

But then - where you have the situation where the column is case sensitive, you are pretty much forced to apply the function for every single row processed. My suggestion is to review the table design and if performance is an issue - update the column to be case insensitive and enforce it via UPDATE and INSERT triggers.

--
Billy
Received on Fri Jul 27 2001 - 04:13:33 CDT

Original text of this message

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