A primary key is a special constraint on a column or set of columns. A primary key constraint ensures that the column(s) so designated have no NULL values, and that every value is unique. Physically, a primary key is implemented by the database system using a unique index, and all the columns in the primary key must have been declared NOT NULL. A table may have only one primary key, but it may be composite (consist of more than one column).
Tuesday, July 10, 2012
What is the difference between a primary key and a surrogate key?
Labels:
DWH Concepts
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment