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

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

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);