17.05 - Example: Changing the Value Compression for a Compressed Column - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Advanced SQL Engine
Teradata Database
Release Number
January 2021
Content Type
Programming Reference
Publication ID
English (United States)
Last Update

Suppose a company that does business only in Santa Monica decides to expand. Previously, the city name Santa Monica was value-compressed. Now, the city name Los Angeles is to be value-compressed. The following example changes the single value-compressed city name value from Santa Monica to Los Angeles, which means that it should also be value-compressed:

     ALTER TABLE customer ADD city_name COMPRESS 'Los Angeles';

If city_name had not been multivalue-compressed previously, this request would multivalue-compress all occurrences of Los Angeles. Note that this is just an example, because Santa Monica and Los Angeles can be multivalue-compressed.