16.20 - Examples: Setting Transform Groups for UDTs - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

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;