1/3
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
constraint
is a rule that governs allowable values in a database. (blank) are based on relational and business rules.
The database automatically rejects insert, update, and delete statements that violate a (blank).
NOT NULL
DEFAULT
PRIMARY KEY
FOREIGN KEY
UNIQUE
constraint ensures that values in a column, or group of columns, are unique.
CHECK
constraint specifies an expression on one or more columns of a table. The constraint is violated when the expression is FALSE and satisfied when the expression is either TRUE or NULL.
SQL CONSTRAINT
Table constraints may be named using the optional CONSTRAINT
keyword, followed by the constraint name and declaration
Adding and dropping constraints
Constraints are added and dropped with the ALTER TABLE
TableName followed by an ADD
, DROP
, or CHANGE
clause.