|  |  | Archives of the TeradataForumMessage Posted: Tue, 05 Feb 2014 @ 00:03:13 GMT
 
 
  
| Subj: |  | Re: Is OREPLACE always case sensitive |  |  |  | From: |  | McCall, Glenn David |  
 Usually oracle convert everything to lower case (or upper case) to do case insensitive comparisons. You could do the same. For example: 
     SELECT OREPLACE  ('mon Tue Wed' , 'MON' , 'Mon') Might become:
     SELECT OREPLACE  (upper('mon Tue Wed') , 'MON' , 'Mon')
 Or if necessary 
     SELECT OREPLACE  (upper('mon Tue Wed') , upper('MON') , 'Mon')
 Obviously he use of upper *in this example* is unnecessary because string literals are being used. However, if the original string, or
the search string are column references, then use of upper is a viable option. 
 Glenn Mc 
 
 |  |