Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 27 Aug 2007 @ 20:44:22 GMT


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


Subj:   Stripping numeric data in varchar(900)
 
From:   Schafer, Michael

I have a field that contains varchar(900) that I would need to strip only the numeric data from. If there are multiple numbers separated by any text (including spaces) I would like to capture them as separate numbers. I have included some example data below. Any help would be greatly appreciated. Thank you,

Example data:

     1234 some string
     Text 345 more junk
     35 5th stuff
     123, 5687 garbage text 26

Desired result:

     1234
     345
     35 5
     123 5687 26


     
  <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