Example: Implicit Conversion of Character to TIME - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

The following CREATE TABLE statement specifies a FORMAT phrase for the TIME data type column:

CREATE SET TABLE timetab (f1 TIME(0) FORMAT 'TBHHhMImSSs');

In field mode, the following INSERT statement successfully performs the character to TIME implicit conversion because the format of the string conforms to the format of the TIME column in the timetab table:

INSERT INTO timetab ('AM 10h20m30s');

In record or indicator mode, the following INSERT statement successfully performs the character to TIME implicit conversion because the format of the string is in the ANSI TIME format:

INSERT timetab ('11:23:34');