16.20 - Example - Teradata Vantage NewSQL Engine

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 TIME WITH TIME ZONE:

SELECT id, CAST (information AS TIME WITH TIME ZONE) FROM support;