Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Fri, 12 Dec 2003 @ 20:07:06 GMT

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

Subj:   Re: Leading zero's in INTEGER column
From:   Dieter Noeth

Rick Davis wrote:

  How can I Insert a leading zero's in a INTEGER column like 0025 ?  

You can specify a format with leading zeroes for output but this will be used only by BTEQ:

select 25 (format '9999');

If you want Queryman/ODBC to use the format you must cast it to a char:

select 25 (format '9999', char(4));


  <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: 23 Jun 2019