Primary key:
Each table can have one primary key, which uniquely identifies each row in a table and ensures that no duplicate rows exist. Foreign Key:
On whichever column you put FOREIGN KEY constraint then the values in that column must refer to existing values in the other table. A foreign key column can refer to primary key or unique key column of other tables.
No comments:
Post a Comment