Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 21 Dec 2010 @ 15:50:08 GMT


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


Subj:   Re: How to pad zeros a decimal field.
 
From:   Maccha Narayana Rao Naidu

HI Vijay,

Hope this Helps

     CREATE SET TABLE sys_mgmt.Test ,FALLBACK ,
          NO BEFORE JOURNAL,
          NO AFTER JOURNAL,
          CHECKSUM = DEFAULT
          (
     Test Decimal FORMAT'9999');

      *** Table has been created.
      *** Total elapsed time was 1 second.


      BTEQ -- Enter your DBC/SQL request or BTEQ command:
     insert into sys_mgmt.Test values('5');

     insert into sys_mgmt.Test values('5');

      *** Insert completed. One row added.
      *** Total elapsed time was 1 second.


      BTEQ -- Enter your DBC/SQL request or BTEQ command:
     select * from sys_mgmt.Test;

     select * from sys_mgmt.Test;

      *** Query completed. One row found. One column returned.
      *** Total elapsed time was 1 second.

     Test
     ----
     0005

Thanks

Machha



     
  <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