Cursors and ANSI System-Time Table Queries | Teradata Vantage - Cursors and ANSI System-Time Table Queries - 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™

A cursor is a data structure that stored procedures and Preprocessor2 use at runtime to point to the result rows in a response set returned by an SQL query. Procedures and embedded SQL also use cursors to manage inserts, updates, execution of multistatement requests, and SQL macros.

The DML semantics described for system-versioned system-time tables apply to DML associated with a cursor, with some limitations that relate to positioned (updatable) cursors:
  • A SELECT statement on a temporal table can open an updatable cursor if the statement conforms to all existing rules on updatable cursors.
  • A SELECT or DELETE statement that opens an updatable cursor has the same syntax as described in Teradata Vantage™ - SQL Data Manipulation Language, B035-1146, but for system-versioned system-time tables the FROM clause cannot t include the special ANSI temporal FOR SYSTEM TIME clause.

Related Information

For more information on... See...
cursors Teradata Vantage™ - SQL Stored Procedures and Embedded SQL, B035-1148