Content deleted Content added
UberCryxic (talk | contribs) minor touches |
Terminology was wrong; the conditions in check constraints are NOT boolean expressions due to the three-valued logic of SQL |
||
Line 1:
A '''check constraint''' (also known as '''table check constraint''') is a
For example, in a
PRICE >= 0
Line 9:
If these constraints were not in place, it would be possible to have a negative price (-$30) or quantity (-3 items).
Check constraints are used to ensure the validity of data in a database and to provide [[data integrity]]. If they are used at the database level, applications that use the database will not be able to add invalid data or modify valid data so the data
==External link ==
|