16.20 - SQL Definition - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

The following SQL statements show the DDL for the meter distinct UDT and the toInches method.

CREATE TYPE meter AS FLOAT
   FINAL
   INSTANCE METHOD toInches()
      RETURNS FLOAT
      SPECIFIC meter_toInches
      NO SQL
      PARAMETER STYLE TD_GENERAL
      DETERMINISTIC
      LANGUAGE C;

CREATE METHOD toInches()
   RETURNS FLOAT
   FOR meter
   EXTERNAL NAME 'CS!toinches!udm_src\to_inches.c!F!meter_toInches';