SET TRANSFORM GROUP FOR TYPE Examples | Teradata Vantage - Examples: Setting Transform Groups for UDTs - 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™

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;