Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Thu, 13 Oct 2005 @ 18:18:53 GMT





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




Subj:   Re: Replace Text Function
 
From:   Ravi Bhat Ullalkar



Phil,

The aim of the SQL below is to replace & with AND. A similar approach could possibly work for you ...

     SELECT
     '12&34',
     SUBSTR('12&34',1,INDEX('12&34','&')-1)||'AND'||SUBSTR('12&34',INDEX('12&
     34','&')+1);

Ravi Bhat
Computer Sciences Corporation
eMedNY Data Warehouse





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008