Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 17 Jul 2002 @ 09:16:49 GMT


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


Subj:   Teradata String Replace within a string Function
 
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, July 17, 2002 04:31 -->

Hi All,

I have a string where I need to replace all the occurrences of a string with another string.

So CUST-ACCT-I, need to become CUST_ACCT_I

How do you replace all the occurrences of '-' with a '_'?

Options: Use embedded case statements (a case within a case using the position function to return the location of the first underscore)

Is there a Teradata function to do this??

Thanks for your help in advance.



     
  <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