Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Issue with Number data type in Teradata 14.0 - response (1) by Adharssh

$
0
0

Hi Suresh,
In Teradata, We don't have NUMBER datatype prior to TD 14 instead we have Decimal Datatype which is more equivalent to Number datatype in Oracle.
AS you  have mentioned,the Datatype in Oracle is Number(10,4). So its equivalent in Teradata is Decimal(14,4) or NUMBER(14,4). If we use this Datatype, therewon't be any problem in Data Matches with the Oracle.
In Teradata, 
Decimal(n,m) represents,
m-  Represents the Scale(TotalNumber),
n - the Precision.
The Same is the case for Number(n,m). Themajor difference is that the Decimal is fixed length whereas the Number is Variable length depends on the exponent & Mantissa.
You can check the length of the Number datatype using CHAR_LENGTH(COL) or LENGTH(COL) of exactly whats the length that used for the NUMBER column.
Thanks & Regards,
Adharssh.


Viewing all articles
Browse latest Browse all 14773

Trending Articles