What is difference between primary key and foreign key?In: Computers |
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.
|
|
|
First answer by Gcutter. Last edit by Harithaveni. Contributor trust: 8 [recommend contributor]. Question popularity: 37 [recommend question]
|
Research your answer: |
Can you answer other questions about computers and the net?
|
|


