16.20 - Security Constraint Object Definition - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

This example defines two constraint objects which together comprise a sensitivity label.

   CREATE CONSTRAINT Classification_Level SMALLINT, NOT NULL,
      VALUES (TopSecret:4, Secret:3, Confidential:2, Unclassified:1),
         INSERT SYSLIB.InsertLevel,
         UPDATE SYSLIB.UpdateLevel,
         DELETE SYSLIB.DeleteLevel,
         SELECT SYSLIB.ReadLevel;

   CREATE CONSTRAINT Classification_Category BYTE(8),
   /* leave room for 64 categories, nulls are allowed */
      VALUES (NATO:1, UnitedStates:2, Canada:3, UnitedKingdom:4,
              France:5, Norway:6, Russia:7),
         INSERT SYSLIB.InsertCategory,
         UPDATE SYSLIB.UpdateCategory,
         DELETE SYSLIB.DeleteCategory,
         SELECT SYSLIB.ReadCategory;