Distinct UDTs - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

Product
Preprocessor2 for Embedded SQL
Release Number
15.10
Language
English (United States)
Last Update
2018-10-07
dita:id
B035-2446
lifecycle
previous
Product Category
Teradata Tools and Utilities

A distinct UDT is based on a single, predefined data type such as INTEGER or VARCHAR. It redefines an already‑defined SQL data type.

Example  

Define Salary as a Decimal(9,2), but with a function that prevents someone from entering a value of less than 20,000 or more than 2,000,000.