SQL DAY-5
SQL DAY-5
CHAPTER 6
DATA INTEGRITY
Constraints
• A constraint is a rule defined for a single table that limits the possible values user can
enter into the table or column.
• Constraints enforce data integrity on a column (column_level constraints) or on a
table (table_level constraints).
• Constraints are maintained separately from a table’s structure so that we can create,
change, and drop constraints without having to drop and recreate the table.