Using FORMAT for Input - Teradata Vantage - Analytics Database

SQL Data Types and Literals

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
uds1628112204571.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
exs1472253032394
lifecycle
latest
Product Category
Teradata Vantage™

FORMAT can also be used for input.

For example, the following statement creates a table table_2 with two date type columns:

CREATE Table_2
  (f1 DATE FORMAT 'YY年MM月DD日',
   f2 DATE FORMAT '和暦YY年MM月DD日');

The following SQL statement is valid:

INSERT INTO Table_2 ('92年03月10日', '平成04年03月10日');

Each Imperial Era (except the current one) has an end, which is considered in the validation of input. Using Japanese Imperial Era formatting for dates previous to the Meiji era (before 1867/1/9) is considered a run-time error.

Normally on input, Vantage assigns default values for the year (current year), month (current month), and day (first day), if not specified.