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

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

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.