ALTER CONSTRAINT Examples | Teradata Vantage - 17.00 - 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.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
mdr1472255012272

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