Can you please help me concerning this matter (I didn´t found it in the Teradata documentation, which is honestly little overwhelming): My table had this column -BAN DECIMAL(9,0)-, and now I want to change it to – BAN DECIMAL(15,0) COMPRESS 0.- How can I do it? What does COMPRESS constraint 0. or any other mean anyway?
I hope this is possible, and I don`t have to create a new table and then copy the data form the old table. The table is very very big – when I do COUNT(*) form that table I get this error: 2616 numeric overflow occurred during computation
Can you please help me concerning this matter (I didn´t found it in the
Share
The syntax diagram for ALTER TABLE doesn’t seem to support directly changing a column’s data type. (Teradata SQL DDL Documentation).
COMPRESS 0compresses zeroes. Teradata supports a lot of different kinds of compression.Numeric overflow here probably means you’ve exceeded the range of an integer. To make that part work, just try casting to a bigger data type. (You don’t need to change the column’s data type to do this.)