Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 02 Sep 2014 @ 11:56:06 GMT


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


Subj:   Re: Replace string in teradata
 
From:   Dieter Noeth

Sridharan Manoharan wrote:

  I have requirement to replace the ?_? to none, for example:- ?6_in_6? to 6in6  


  Tried with oreplace but not working.  


  SEL oreplace(COLUMNNAME,'_','|') FROM DATABSASENAME.TABLENNAME  


What is "not working"?

Because it replaces '-' with '|' instead of ''?

For single digits you should better switch to oTranslate:

     oTranslate(COLUMNNAME,'_','')

Dieter



     
  <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: 15 Jun 2023