Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Mon, 07 Nov 2000 @ 05:00:59 GMT





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




Subj:   Re: Adding leading zeros in SQL output
 
From:   David Hough



Your point about adding an extra column for the sign is well taken, but note that ODBC does just fine with John's example. To clarify:

select number (format '9(9)') from table;

returns a numeric value with formatting. Formatting is ignored by ODBC but works for BTEQ, etc. John's example:

select number (format '9(9)') (char(9)) from table;

works fine everywhere because it returns a character string. The formatting is applied internally by the Teradata during the char conversion.





     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008