Home >Database >Mysql Tutorial >What are MySQL constraints?
We know that a constraint is a restriction or limitation. Similarly, MySQL constraints are used to define rules that limit the data that can enter a table. With the help of constraints, we can basically maintain the accuracy and integrity of the data within the table.
There are two types of MySQL constraints −
The following are some of the most common MySQL constraints −
The above is the detailed content of What are MySQL constraints?. For more information, please follow other related articles on the PHP Chinese website!