Search:     Advanced search
Browse by category:
C/C++   |   Java   |   Oracle/Database   |   SAP   |   ASP .NET   |   Mainframe-DB2   |   Freshers

What are primary keys and foreign keys?

Add comment
Views: 61
Votes: 0
Comments: 0
Primary keys are the unique identifiers for each row. They must contain unique values and cannot be null. Due to their importance in relational databases, Primary keys are the most fundamental of all keys and constraints. A table can have only one Primary key.

Foreign keys are both a method of ensuring data integrity and a manifestation of the relationship between tables.
Others in this Category
document What does TOP Operator Do?
document What do you mean by Table Sample?
document What are the advantages of using Stored Procedures?
document Q: Please explain the concepts of transaction, commit and rollback
document What is a table called, if it has neither Cluster nor Non-cluster Index? What is it used for?
document What is Row_Number()?
document How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?
document Q: What are different normalization forms?
document What’s the difference between a primary key and a unique key?
document What is PIVOT and UNPIVOT?
» More articles



RSS