Examples | Character-to-TIME Conversion | Teradata Vantage - 17.10 - Example: Fractional Seconds - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1143-171K
Language
English (United States)

This query returns the value ‘12:23:39.999900’ (with the fractional seconds extended to 6 places as requested by CASTing to a TIME(6) type).

SELECT CAST(' 12:23:39.9999 '
AS TIME(6));