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

Teradata Vantage™ - Advanced SQL Engine Security Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Security
Publication ID
B035-1100-171K
Language
English (United States)

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."