Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 24 Apr 2002 @ 19:07:34 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: String matching and escape character
 
From:   Geoffrey Rommel

  I would like to know what the escape character is for string matching. For example, if I say:  


  SOME_STRING LIKE 'ABC%'  


  I will get any string starts with ABC. But how do I go about matching exactly 4 characters with "ABC and percentile"?  



I think what you want is "'ABC%', followed by anything". If so, you can use any character as the escape by specifying ESCAPE, like this:

SOME_STRING LIKE 'ABC\%%' ESCAPE '\'



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016