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.10
Published
July 2021
Language
English (United States)
Last Update
2022-02-15
dita:mapPath
ppz1593203596223.ditamap
dita:ditavalPath
wrg1590696035526.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."