SQL Definitions for the Transform Method - Teradata Vantage - Analytics Database

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantage™

The following CREATE METHOD statement installs the transform method in the database:

CREATE METHOD circle_t_FromSql()
   RETURNS VARCHAR(80)
   FOR circle_t
   EXTERNAL NAME 'CS!c_fromsql!udmsrc/c_fromsql.c!F!circle_t_FromSql';

You must add the circle_t_ToSql UDF before executing the following CREATE TRANSFORM statement. For the definition and C code of the circle_t_ToSql UDF, see C Scalar Functions for UDT Functionality.

The following statement registers a UDF called circle_t_ToSql and the circle_t_FromSql UDM as transform routines for the circle_t UDT:

CREATE TRANSFORM FOR circle_t
   circle_t_IO (TO SQL WITH SPECIFIC FUNCTION circle_t_ToSql,
      FROM SQL WITH SPECIFIC METHOD circle_t_FromSql);