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.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.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);