IF Syntax Elements - 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ā„¢
conditional_expression
A boolean condition used to evaluate whether a statement or statements embedded within the IF block should be executed.
You cannot use IN and NOT IN operators if the conditional list contains any local variables, parameters, or cursor aliases.
OUT parameters are not allowed in conditional_expression.
statement
Any of the following:
  • DML, DDL or DCL statement that can be used in a stored procedure. These include dynamic SQL statements.
  • Control statements, including BEGIN END compound statements.
For details, see statement in FOR.