Example

Teradata Vantageā„¢ Data Types and Literals

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

Consider the following table definition, where datetime_record is a UDT:

CREATE TABLE support
   (id INTEGER
   ,information datetime_record );

Assuming an appropriate cast definition exists for the datetime_record UDT, the following statement converts the values in the information column to INTERVAL MONTH:

SELECT id, CAST (information AS INTERVAL MONTH) FROM support;