what is the difference between primary key and foreign key?
Answer Posted / gaytriom
A primary key is a column which uniquely identifies the
records in a table. In a broad sense, a primary key is the
mixture of a unique key and an index: A collumn with a primary
key is indexed to deliver a faster query, and doesn't allow
duplicate values to ensure specific data.
A foreign key is a column (the child collumn) in a table which
has a corresponding relationship and a dependency on another
collumn (the parent collumn) that is usually in a different
table. Parent collumns can have multiple child collumns, but a
child collumn can only have one parent collumn.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is the use of placeholder control?
What is a web farm?
Explain what is event bubbling?
How do you change the session time-out value?
Describe the diffeerence between inline and code behind?
What is cross page posting in asp net?
Explain the overview of asp.net?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What is global.asax file used for?
Define tracing.
What is parse in asp.net?
Differentiate between namespace and assembly.
What is the difference between visual basic and asp.net?
What are the events in a page life cycle?
Is asp.net outdated?