Using a Correlation Name for a Cursor Specification - Teradata Vantage - Analytics Database

SQL Stored Procedures and Embedded SQL

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
2023-10-30
dita:mapPath
frc1628111662093.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
rjx1472253414573
lifecycle
latest
Product Category
Teradata Vantageā„¢

You can define aliases for the columns and expressions in a cursor using the standard object AS correlation_name syntax. You must qualify any aliased object with the for_loop_variable name if you reference it within the loop.

You cannot reference a non-aliased cursor expression within the loop.