17.05 - Example: Adding an Instance Method to a Structured UDT - 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)

The following example adds a new instance method named toYen() to the structured UDT named euro:

    ALTER TYPE euro   /* Add original method */
     ADD INSTANCE METHOD toYen() 
     RETURNS yen
     LANGUAGE C
     PARAMETER STYLE SQL
     DETERMINISTIC
     NO SQL;