|
|
Archives of the TeradataForum
Message Posted: Tue, 21 Dec 2010 @ 15:50:08 GMT
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
| |