compression_attributes - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

These attributes are Teradata extensions to the ANSI SQL:2011 specification.

COMPRESS
A specified set of distinct values in a column that is to be compressed to zero space.
See Teradata Vantage™ - Database Design, B035-1094 for a detailed description of multivalue compression.
See Teradata Vantage™ - Data Types and Literals, B035-1143 for more information about the COMPRESS attribute.
constant
Specifies that nulls and the value are compressed.
Compressed constants are typically string literal. For numeric columns, constants have a numeric data type.
The most space a numeric value can occupy is eight bytes.
Using COMPRESS on fixed-length character data can save space depending on the percentage of rows for which the compressed value is assigned.
See Teradata Vantage™ - Data Types and Literals, B035-1143 for information about limits for this value.
NULL
Specifies that nulls are compressed.
You can only specify NULL once per column.