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

Security Administration

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-05
dita:mapPath
hjo1628096075471.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
zuy1472246340572
lifecycle
latest
Product Category
Teradata Vantage™

A user with the OVERRIDE CONSTRAINT privilege can specify a UDF in the request, the use 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."