Example: Compressing Unicode Values - Analytics Database - Teradata Vantage

SQL Operators and User-Defined Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-05
dita:mapPath
xub1628111590556.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
drp1544241916620
lifecycle
latest
Product Category
Teradata Vantage™

In this example, the Unicode values in the Description column are compressed using the LZCOMP function with ALC. The LZDECOMP function uncompresses the previously compressed values.

CREATE MULTISET TABLE Pendants
   (ItemNo INTEGER,
    Gem CHAR(10) UPPERCASE CHARACTER SET UNICODE,
    Description VARCHAR(1000) CHARACTER SET UNICODE
       COMPRESS USING TD_SYSFNLIB.LZCOMP
       DECOMPRESS USING TD_SYSFNLIB.LZDECOMP);