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

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Publication Date
June 2025
Content Type
SQL Reference
Publication ID
B035-1144-200K
ft:locale
en-US
ft:lastEdition
2026-10-28
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
ft:sourceId
dita
dita:id
mdr1472255012272
lifecycle
latest

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;