16.10 - Example: Using the Results of a UDF to Set the Constraint Value - Teradata Database

Teradata Database Security Administration

Product
Teradata Database
Release Number
16.10
Release Date
June 2017
Content Type
Administration
Security
Publication ID
B035-1100-161K
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."