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: Tim Witort <trwNOSPAM_at_NOSPAMmedicalert.org>
Date: 1997/08/28
Message-ID: <34060B73.44D8@NOSPAMmedicalert.org>#1/1

Eric B. Vest wrote:
>
> Help, anybody:
>
> I'm trying to run a SELECT...WHERE...LIKE query on product names and
> descriptions. However, I don't know of a way to ensure that the search
> is case-insensitive, as the LIKE conditions are dependent on user
> input. I need to make sure that the program returns a positive search
> result when a user types in "malaysia" even if "Malaysia" is the actual
> entry in the database.

....
WHERE UPPER(theColumn) LIKE '%'||UPPER(:thingUserTyped)||'%'

Received on Thu Aug 28 1997 - 00:00:00 CDT

Original text of this message

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