Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 19 Dec 2007 @ 19:23:24 GMT


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


Subj:   RE: LPAD similar function in teradata
 
From:   Anomy Anom

<-- Anonymously Posted: Wed, 19 Dec 2007 13:22 -->

One workaround is to create a constant string containing spaces, then use substring and concatenation. For example, assuming you want 3 spaces for each level and you won't exceed 85 levels / 255 spaces indentation substring(cast('' as char(255)) FROM 1 for Level*3)||Descr



     
  <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