Example - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantage™ Data Types and Literals

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 DATE:

SELECT id, CAST (information AS DATE) FROM support;