SET TRANSFORM GROUP FOR TYPE Examples | Teradata Vantage - Examples: Setting Transform Groups for UDTs - Analytics Database - Teradata Vantage

SQL Data Definition Language Syntax and Examples

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-10-04
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

This statement sets the JSON data type with the Latin character set to the TD_JSON_VARCHAR transform.

SET TRANSFORM GROUP FOR TYPE JSON CHARACTER SET LATIN TD_JSON_VARCHAR;

This statement sets the JSON data type with the BSON storage format to the TD_JSON_VARCHAR transform.

SET TRANSFORM GROUP FOR TYPE JSON STORAGE FORMAT BSON TD_JSON_VARCHAR;

This statement sets the ST_GEOMETRY data type to the TD_GEO_VARCHAR transform.

SET TRANSFORM GROUP FOR TYPE ST_GEOMETRY TD_GEO_VARCHAR;

The following statement uses the TD_JSON_VARCHAR transform for column c1, which is BSON data type, and uses the TD_GEO_VARCHAR transform for column c2.

SELECT NEW JSON('{}', BSON) AS c1, NEW ST_GEOMETRY('POINT(1 1)') AS c2;