What is a foreign key?

It is a field in one table referencing the primary key in another. It establishes a relationship between the two tables, ensuring data consistency and enabling data retrieval across tables.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *