Rules for Using a Scalar UDF in an UPDATE Request - Advanced SQL Engine - Teradata Database

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
vjt1596846980081.ditamap
dita:ditavalPath
vjt1596846980081.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™

A scalar UDF can be invoked from both the SET clause and the WHERE clause of an UPDATE request. See Example: UPDATE Using an SQL UDF Invocation in the SET and WHERE Clauses.

Clause Usage rules are the same as those for invoking a scalar UDF from the …
SET Select list of a SELECT request.

You must use the alias to reference the result of a scalar UDF invocation that has an alias.

WHERE WHERE clause of a SELECT request.

The scalar UDF must be invoked from within an expression that is specified as the search condition. Otherwise, the system returns an error.

See WHERE Clause.