SET TRANSFORM GROUP FOR TYPE Examples | Teradata Vantage - 17.05 - Examples: Setting Transform Groups for UDTs - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1144-175K
Language
English (United States)

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;