What is difference between primary key and foreign key?

1 answer

Answer

1103712

2026-05-20 17:01

+ Follow

A primary key is an attribute (or combination of attributes) that uniquely identifies each row in a relation. A primary key is designated by underlining the attribute name. The primary key of an entity set allows us to distinguish among the various entities of the set. A foreign key is an attribute in a relation of database that serves as the primary key of another relation in the same database.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.