INSERT Statement for Time Series Tables | Teradata Vantage - INSERT - Analytics Database - Teradata Vantage

Time Series Tables and Operations

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
tuc1628112453431.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
sfz1493079039055
lifecycle
latest
Product Category
Teradata Vantageā„¢
You use the INSERT statement to insert rows into PTI tables. PTI tables can be either of the following types:
  • Nonsequenced
  • Sequenced

PTI tables include the system generated TD_TIMECODE column. The TD_TIMECODE value must be the first value in the value list for inserts into nonsequenced and sequenced PTI tables. When inserting into a PTI table, the TD_TIMECODE value cannot precede the timezero value specified in the PTI definition, for example DATE '2016-10-15'.

Sequenced PTI tables also include the TD_SEQNO column. This must be the second value in the value list for inserts into a sequenced PTI table.

In sequenced tables, rows are ordered according the TD_TIMECODE value and then the TD_SEQNO value. Row ordering is automatic, so inserts can occur in any order.

The following table summarizes inserts into the system generated PTI table columns.

Column Description
TD_TIMECODE This is a system generated column for sequenced PTI tables.

This is a non-nullable column. You must provide a value.

This must be the first value in the value list for inserts.

You cannot provide CURRENT_TIMESTAMP, CURRENT_TIME, or CURRENT_DATE as a value.

TD_SEQNO This is a system generated column for sequenced PTI tables.

This is a non-nullable column. You must provide a value.

This must be the second value in the value list for inserts into a sequenced PTI table.

INSERT Restrictions

Isolated loading is not supported for inserts into PTI tables.

The DEFAULT VALUES option is not supported for inserts into PTI tables.