16.20 - Example: Changing the Value Compression for a Compressed Column - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

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.