addCheckConstraint

Adds a check constraint to an existing column or set of columns.

Available attributes

Name Description Required for Supports Since
catalogName Name of the catalog all 3.0
constraintBody all all
constraintName Name of the check constraint all all
disabled all
schemaName Name of the schema all
tableName Name of the table to create the check constraint on all all
validate This is true if the check constraint has 'ENABLE VALIDATE' set, or false if the check constraint has 'ENABLE NOVALIDATE' set. all

Database support

Database Notes Auto rollback
DB2/LUW Supported Yes
DB2/z Supported Yes
Derby Not Supported No
Firebird Not Supported No
H2 Not Supported No
HyperSQL Not Supported No
INGRES Not Supported No
Informix Not Supported No
MariaDB Not Supported No
MySQL Not Supported No
Oracle Supported Yes
PostgreSQL Supported Yes
Snowflake Not Supported No
SQL Server Supported Yes
SQLite Not Supported No
Sybase Not Supported No
Sybase Anywhere Not Supported No