assignment_statement - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The SET statement.

See SET for details.

You can specify these options for assignment statements.

SET
A keyword introducing the SET statement used for assigning a value to a variable or parameter.
assignment_target
Name of the variable or parameter to be assigned a value.
The parameter cannot be an IN parameter.
The variable cannot be named QUERY_BAND.
You cannot set values for status variables in SQL procedures.
assignment_source
Arithmetic and string expressions that contain the value to be assigned to a variable.
SQL procedure local variables, status variables, IN or INOUT parameters, and FOR loop column and correlation names can be specified in the assignment_source, which is also known as a value expression.