Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 19 Aug 2003 @ 09:23:29 GMT


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


Subj:   Re: Help with TRIM and SUBSTR
 
From:   Kiernan, Nigel

Try using the following

sel trim(substr(COLNAME,8,length(COLNAME))) from TABLENAME;

This returns the record from position 8 to the end of the record, and both leading and trailing spaces are trimmed.



     
  <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