|
|
Archives of the TeradataForum
Message Posted: Wed, 29 Jul 2009 @ 20:07:55 GMT
Subj: | | Re: Compression and negative values |
|
From: | | Dieter Noeth |
For a decimal(5,4) there's no difference if you write 5./5.0/5.00/5.000/5.000, because it's always with 4 fractional digits, it's not an Oracle
number.
CREATE TABLE dummy
( i INT,
ID DECIMAL (4,0) COMPRESS (-1),
ID2 DECIMAL (4,4 ) COMPRESS (0)
);
*** Table has been created.
*** Total elapsed time was 1 second.
BTEQ -- Enter your DBC/SQL request or BTEQ command:
SHOW TABLE dummy;
*** Text of DDL statement returned.
*** Total elapsed time was 1 second.
--------------------------------------------------------
CREATE SET TABLE TERADATA_EDUCATION.dummy ,NO FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOURNAL,
CHECKSUM = DEFAULT
(
i INTEGER,
ID DECIMAL(4,0) COMPRESS -1. ,
ID2 DECIMAL(4,4) COMPRESS 0.0000 ) PRIMARY INDEX ( i );
But, wouldn't it be faster to simply that it on your own?
Dieter
| |