A constraint definition that applies to the whole table. SQL allows column constraints and table constraints. The four types of table constraints are PRIMARY KEY, UNIQUE, CHECK, and FOREIGN KEY constraints. A column must be defined in a table before you can specify the column in a table constraint definition. You can define a table constraint on persistent base tables and global temporary tables only.