Example: Inserting Rows into an ANSI System-Time Table - Analytics Database - Teradata Vantage

ANSI Temporal Table Support

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
jqu1628112571823.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
esa1472244798285
lifecycle
latest
Product Category
Teradata Vantage™
INSERT INTO employee_system_time VALUES 
 (1001,'Sania',111,TIMESTAMP'2002-01-01 00:00:00.000000+00:00',                    TIMESTAMP'2002-07-01 12:00:00.350000+00:00');
INSERT INTO employee_systime VALUES 
 (1001,'Fred',222, TIMESTAMP'2002-07-01 12:00:00.350000+00:00',                    UNTIL_CLOSED);
INSERT INTO employee_systime VALUES (1002,'Ash',333,123,456);
INSERT INTO employee_systime VALUES (1003,'SRK',111,,’nothing');
INSERT INTO employee_systime VALUES(1003,'Alice',222,’Wonder',NULL);
Values for the start and end columns that constitute the system-time period must be provided in the INSERT statement, but they will be automatically replaced by the database. The start time value will be replaced by the value of the TEMPORAL_TIMESTAMP function at the time of the insertion. The end time value will be replaced by the maximum system TIMESTAMP(6) WITH TIME ZONE value, 9999-12-31 23:59:59.999999+00:00.