ALTER CONSTRAINT Examples | Teradata Vantage - ALTER CONSTRAINT Examples - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Example: Adding a DELETE Security Policy to a Constraint Object

This ALTER CONSTRAINT example adds a DELETE security policy UDF to the classification_level constraint object.

     ALTER CONSTRAINT classification_level
     AS FUNCTION ADD DELETE SYSLIB.deletelevel;

Example: Adding a New Set of Name:Value Pairs to a Constraint Object

This ALTER CONSTRAINT example adds the specified set of name:value pairs to the classification_level constraint object and deletes all of the old name:value pairs.

     ALTER CONSTRAINT classification_level
     AS VALUES (topsecret:4, secret:3, confidential:2, unclassified:1);