Example: Modifying a Named CHECK Constraint - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
ft:locale
en-US
ft:lastEdition
2021-07-27
dita:mapPath
spp1591731285373.ditamap
dita:ditavalPath
spp1591731285373.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Replace the current boolean condition for CHECK constraint check_1 with a new boolean condition.

Constraint name check_1 must be an existing CHECK constraint.

 ALTER TABLE table_1 MODIFY CONSTRAINT check_1 CHECK (column_2 > 0);