CREATE CONSTRAINT SQL Statement | Teradata Database - CREATE CONSTRAINT - Teradata Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Publication Date
June 2025
Content Type
SQL Reference
Publication ID
B035-1144-200K
ft:locale
en-US
ft:lastEdition
2026-09-23
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
ft:sourceId
dita
dita:id
mdr1472255012272
lifecycle
latest

Creates the SQL row-level security constraint definition and associates it with specific UDFs to enforce that constraint.

Before creating a constraint you must:
  • Design the classification system that defines the set of name:value pairs that must be specified for the constraint.
  • Create the UDFs that enforce the constraint, which you must specify for SYSLIB.function_name.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.

There are no ANSI standards for row-level security-related SQL statements.

Required Privileges

You must have the CONSTRAINT DEFINITION privilege to create a row-level security constraint.

Privileges Granted Automatically

None.