CREATE METHOD Examples | Teradata Database - Example: Creating a Constructor Method for a UDT - Teradata Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Published
June 2025
ft:locale
en-US
ft:lastEdition
2026-09-09
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
dita:id
mdr1472255012272
lifecycle
latest

The following example creates the definition for a constructor method named address for the UDT named address. The external routine for this method is stored on the Teradata platform at the location specified in the EXTERNAL NAME clause.

CREATE CONSTRUCTOR METHOD address( VARCHAR(20), CHARACTER(5) )
  RETURNS address
  FOR address
  EXTERNAL NAME 
   'SO!C:\structured_lib\addr_cons.obj!F!addr_constructor';