Creating a Table with Security Constraint Columns - Analytics Database - Teradata Vantage

Security Administration

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-05
dita:mapPath
hjo1628096075471.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
zuy1472246340572
lifecycle
latest
Product Category
Teradata Vantage™

You can define security constraint columns for both SET and MULTISET base tables using the CREATE TABLE statement. For example:

CREATE [SET|MULTISET] TABLE  table_name 
    (col1 integer, col2 integer, col3 varchar(30),
    Security_Classification CONSTRAINT, Job_Category CONSTRAINT)
    primary index(col1);

where Security_Classification (a hierarchical level constraint) and Job_Category (a non-hierarchical category constraint) are security constraint columns that match the names of existing security CONSTRAINT objects.

Tables need not be defined with both types of constraints.

A constraint column inherits the data type and the NULL/NOT NULL specification from the corresponding CONSTRAINT object.

You cannot specify the COMPRESS phrase for a security constraint column.