Example: Using the Results of a UDF to Set the Constraint Value - Advanced SQL Engine - Teradata Database

Security Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
ied1556235912841.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1100
lifecycle
previous
Product Category
Teradata Vantage™

A user with the OVERRIDE CONSTRAINT privilege can specify a UDF in the request, the execution of which is inserted as the constraint column value, if it is a valid value for the constraint.

INSERT table1 SELECT col1, col2, …, NonMacUDF(Level), … FROM table2;

where the value for the security constraint column “Level” (in table 1) is the result of executing the UDF "NonMacUDF."