Archives of the TeradataForum
Message Posted: Wed, 16 Jun 2004 @ 16:06:52 GMT
I'm not sure if I'm reading this incorrectly, but the Fastexport 07.06.02 Reference Manual entry for a binary format export says that dec(x,y) fields will be exported as packed decimal taking (x+1)/2 bytes.
a dec(9,2) field seems to be exported as integer, with the decimal places implicit. Is this correct?
In a bit more detail, my export statement:
.export outfile d:\price.bin mode record format binary; select id, price from xyzzy ;
where id is char(16) not null and is the upi of the table and price is dec(9,2) not null.
This produces a file with 22 byte records, the first 2 being the bytecount. 16 for the id field and 4 for the price field. This is 1 byte smaller than the 5 bytes that the manual says it will be, and in a different format.
Am I missing something?
|Copyright 2016 - All Rights Reserved|
|Last Modified: 15 Jun 2023|