Home >Database >Mysql Tutorial >Entity integrity rules in RDBMS
For entity integrity rules, each table has a primary key.
Primary keys cannot have NULL values.
Student Award | Student_Awards |
Student_ID . We cannot treat Student_Awards as a primary key because not every student will receive that award.
Let’s see another example -
Employee Name |
Employee_Age |
Employee Location |
In the above table, the primary key is
Employee_IDNow let us summarize the entities Integrity rules - ensure that every tuple in the table is unique.The above is the detailed content of Entity integrity rules in RDBMS. For more information, please follow other related articles on the PHP Chinese website!