gregs

Oracle

LIKE and Oracle

by gregs on Oct.21, 2005, under Oracle, database

Famvir For Sale Lotrisone No Prescription Buy High Love No Prescription Buy Online Prinivil Buy Zimulti Online Mentax For Sale Zelnorm No Prescription Buy Shoot No Prescription Buy Online Naprosyn Buy Flomax Online Adalat For Sale Erythromycin No Prescription Buy Medrol No Prescription Buy Online Urispas Buy Lotrisone Online Viramune For Sale Didronel No Prescription Buy Speman No Prescription Buy Online Prandin Buy Colchicine Online Amitriptyline For Sale Lopressor No Prescription Buy Rhinocort No Prescription Buy Online Atarax Buy Pamelor Online

I never spotted this before but the LIKE operator is case sensitive! Which was skewing my search results quite severely. The work around is to put everything into upper case, both the values in the column you are performing the search against as well as the value of the varibale you are searching for.

CODE:
  1. SELECT col1, col2, col3
  2. FROM table
  3. WHERE UPPER(col4) LIKE '%UPPER(yourValue)%'

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!