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
Please brief not about xsd,xslt & xml?
Describe the master page.
What is a gridview in asp.net?
If we remove web.config or machine.config from the application then, is this application will works?
How does a content page different from a master page?
How do we sort the data from a dataset?
What is server components?
What is the application pool?
Give 2 examples for scenarios when routing is not applied?
What is authorization in asp.net?
What is marshalling ? Is it a part of asp.net ?
Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?
What is the importance of Global.asax in ASP.NET?
From which base class all web forms are inherited?
Disable browser cache for entire ASP.NET website?