16.20.16.20 - 16.20 - TIME-to-Period Conversion - 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

Purpose

Converts TIME data as PERIOD(TIME[(n)] [WITH TIME ZONE]) or PERIOD(TIMESTAMP[(n)][WITH TIME ZONE]).

CAST Syntax



time_expression

The TIME expression to be converted.

period_data_type

The data type to which the expression is to be converted.

data_attribute
One of the following data attributes:
  • FORMAT
  • NAMED
  • TITLE